Skip to content

Commit 06a2513

Browse files
committed
Also handle NAMED_LOCAL event type
1 parent bcd72a9 commit 06a2513

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

extensions/ql-vscode/src/log-insights/log-summary.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ type EvaluationStrategy =
1616
| "EXTENSIONAL"
1717
| "SENTINEL_EMPTY"
1818
| "CACHACA"
19-
| "CACHE_HIT";
19+
| "CACHE_HIT"
20+
| "NAMED_LOCAL";
2021

2122
interface SummaryEventBase {
2223
evaluationStrategy: EvaluationStrategy;
@@ -60,6 +61,16 @@ export interface InLayer extends ResultEventBase {
6061
predicateIterationMillis: number[];
6162
}
6263

64+
export interface NamedLocal extends ResultEventBase {
65+
evaluationStrategy: "NAMED_LOCAL";
66+
deltaSizes: number[];
67+
ra: Ra;
68+
pipelineRuns: PipelineRun[];
69+
queryCausingWork?: string;
70+
dependencies: { [key: string]: string };
71+
predicateIterationMillis: number[];
72+
}
73+
6374
interface ComputedExtensional extends ResultEventBase {
6475
evaluationStrategy: "COMPUTED_EXTENSIONAL";
6576
queryCausingWork?: string;
@@ -92,4 +103,5 @@ export type SummaryEvent =
92103
| Extensional
93104
| SentinelEmpty
94105
| Cachaca
95-
| CacheHit;
106+
| CacheHit
107+
| NamedLocal;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export class PerformanceOverviewScanner implements EvaluationLogScanner {
124124
}
125125
case "COMPUTE_RECURSIVE":
126126
case "COMPUTE_SIMPLE":
127+
case "NAMED_LOCAL":
127128
case "IN_LAYER": {
128129
const index = this.getPredicateIndex(predicateName);
129130
let totalTime = 0;

0 commit comments

Comments
 (0)