Skip to content

Commit 655a734

Browse files
authored
Merge pull request #3822 from asgerf/asgerf/fix-negative-tuple-counts
Compare-perf: fix negative tuple counts
2 parents e25b2b1 + 056b919 commit 655a734

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ export class PerformanceOverviewScanner implements EvaluationLogScanner {
151151
for (let i = 0, length = counts.length; i < length; ++i) {
152152
// TODO: possibly exclude unions here
153153
const count = counts[i];
154+
if (count < 0) {
155+
// Empty RA lines have a tuple count of -1. Do not count them when aggregating.
156+
continue;
157+
}
154158
totalTuples += count;
155159
totalTuplesPerStep[i] += count;
156160
}

0 commit comments

Comments
 (0)