History

Show benchmark thread ids in perf PR summary

Cursor Agent committed 9 months ago

Commit e425db61 parent 763eec91 file · +6 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/desktop-perf-trace.mjs+6−0
@@ -256,6 +256,12 @@ function createMarkdownSummary({ tracePath, donePayload, summary, thresholds }) · 255 unmodified lines
256256 "",
257257 `- Thread clicks: ${donePayload.interactions?.threadClicks ?? "n/a"}`,
258258 `- Typed chars: ${donePayload.interactions?.typedChars ?? "n/a"}`,
259+ `- Benchmark thread ids exercised: ${
260+ Array.isArray(donePayload.interactions?.benchmarkThreadIds) &&
261+ donePayload.interactions.benchmarkThreadIds.length > 0
262+ ? donePayload.interactions.benchmarkThreadIds.join(", ")
263+ : "none"
264+ }`,
259265 `- Model selected: ${donePayload.interactions?.selectedModel ?? "n/a"}`,
260266 `- Terminal opened by shortcut: ${donePayload.interactions?.terminal?.openedByShortcut ?? "n/a"}`,
261267 `- Terminal shortcut modifier: ${donePayload.interactions?.terminal?.modifierUsed ?? "n/a"}`,