mirror of
https://github.com/github/codeql-action.git
synced 2026-11-10 06:54:40 +00:00
Record how long the toolcache cleanup takes in telemetry
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
3
lib/entry-points.js
generated
3
lib/entry-points.js
generated
@@ -185372,13 +185372,14 @@ async function tryDeleteToolcacheBundles({
|
||||
if (!isGitHubHostedRunner(env) || !isToolcacheOnWorkspaceFilesystem(logger2)) {
|
||||
return;
|
||||
}
|
||||
const startTime = import_perf_hooks4.performance.now();
|
||||
const result = await deleteToolcacheBundles({ env, logger: logger2 });
|
||||
addNoLanguageDiagnostic(
|
||||
void 0,
|
||||
makeTelemetryDiagnostic(
|
||||
"codeql-action/toolcache-bundle-cleanup",
|
||||
"Toolcache CodeQL bundle cleanup",
|
||||
{ ...result }
|
||||
{ ...result, durationMs: durationMsSince(startTime) }
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user