Skip to content

Commit 2f9aca7

Browse files
authored
Log most expensive predicates and timings to query log (#1349)
1 parent 405a6c9 commit 2f9aca7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

extensions/ql-vscode/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [UNRELEASED]
44

5+
- Prints end-of-query evaluator log summaries to the Query Log. [#1349](https://github.com/github/vscode-codeql/pull/1349)
6+
57
## 1.6.6 - 17 May 2022
68

79
No user facing changes.

extensions/ql-vscode/src/run-queries.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ export class QueryEvaluationInfo {
206206
if (err) {
207207
throw new Error(`Could not read structured evaluator log end of summary file at ${this.evalLogEndSummaryPath}.`);
208208
}
209-
void qs.logger.log(' --- Evaluator Log Summary --- ');
210-
void qs.logger.log(buffer.toString());
209+
void qs.logger.log(' --- Evaluator Log Summary --- ', { additionalLogLocation: this.logPath });
210+
void qs.logger.log(buffer.toString(), { additionalLogLocation: this.logPath });
211211
});
212212
})
213213

0 commit comments

Comments
 (0)