fix: mark missed cpu profile performance windows
This commit is contained in:
@@ -250,8 +250,14 @@ test("performance-summary renders CPU profile window misses and source attributi
|
||||
|
||||
const output = JSON.parse(result.stdout);
|
||||
const text = String(output.renderedText ?? "");
|
||||
const debug = JSON.stringify({ summary: output.summary, evidenceMode: output.evidenceMode, text }, null, 2);
|
||||
assert.equal(output.summary.cpuProfileWindowMissedCount, 1);
|
||||
assert.equal(output.evidenceMode.attributionMode, "cpu-profile-missed-performance-window", debug);
|
||||
assert.equal(output.evidenceMode.cpuProfileMissedPerformanceWindows, true, debug);
|
||||
assert.match(text, /window correlation=1 covered=0 overlapped=0 missed=1 missing=0 sourceMap=missing/u);
|
||||
assert.match(text, /evidence attribution=cpu-profile-missed-performance-window/u);
|
||||
assert.match(text, /CPU profile artifacts exist but missed severe performance windows; do not cite CPU profile hotspots as same-window evidence/u);
|
||||
assert.doesNotMatch(text, /hotspot rows may be used as CPU profile evidence/u);
|
||||
assert.match(text, /cpuWindow=missed/u);
|
||||
assert.match(text, /nearest performanceCapture started after/u);
|
||||
assert.match(text, /CodeWorkbenchView\.js/u);
|
||||
|
||||
Reference in New Issue
Block a user