Skip to content

Commit 833f679

Browse files
committed
Record dependencies from sentinels
1 parent 12a342e commit 833f679

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

extensions/ql-vscode/src/log-insights/performance-comparison.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,12 @@ export class PerformanceOverviewScanner implements EvaluationLogScanner {
144144
break;
145145
}
146146
case "SENTINEL_EMPTY": {
147-
this.data.sentinelEmptyIndices.push(
148-
this.getPredicateIndex(predicateName, raHash),
149-
);
147+
const index = this.getPredicateIndex(predicateName, raHash);
148+
this.data.sentinelEmptyIndices.push(index);
149+
const sentinelIndex = this.raToIndex.get(event.sentinelRaHash);
150+
if (sentinelIndex != null) {
151+
this.data.dependencyLists[index].push(sentinelIndex); // needed for matching up cache hits
152+
}
150153
break;
151154
}
152155
case "COMPUTE_RECURSIVE":

0 commit comments

Comments
 (0)