Track large-thread render timings in desktop perf trace
- Seed each perf project with a large synthetic thread for stress coverage - Measure thread-switch render latency/message counts via ChatView data attributes - Include a Large Thread Render table in `desktop-perf-trace` markdown output
This commit is contained in:
1 parent
25cc139eea
commit
41caab9cc0
3 files changed
+140
-1
No files matched your search
@@ -162,6 +162,9 @@ function summarizeTrace(tracePath) {
|
||||
}
|
||||
|
||||
function createMarkdownSummary({ tracePath, donePayload, summary, thresholds }) {
|
||||
const largeThreadRenderStats = Array.isArray(donePayload.interactions?.largeThreadRenderStats)
|
||||
? donePayload.interactions.largeThreadRenderStats
|
||||
: [];
|
||||
const lines = [
|
||||
marker,
|
||||
"## Desktop Dev Perf Trace",
|
||||
@@ -178,6 +181,16 @@ function createMarkdownSummary({ tracePath, donePayload, summary, thresholds })
|
||||
`- Typed chars: ${donePayload.interactions?.typedChars ?? "n/a"}`,
|
||||
`- Model selected: ${donePayload.interactions?.selectedModel ?? "n/a"}`,
|
||||
"",
|
||||
"### Large Thread Render",
|
||||
"",
|
||||
"| Thread | Messages | Render (ms) |",
|
||||
"| --- | ---: | ---: |",
|
||||
...(largeThreadRenderStats.length > 0
|
||||
? largeThreadRenderStats.map(
|
||||
(stat) => `| ${stat.threadId} | ${stat.messageCount} | ${stat.renderMs} |`,
|
||||
)
|
||||
: ["| n/a | n/a | n/a |"]),
|
||||
"",
|
||||
"### Input Event Metrics",
|
||||
"",
|
||||
"| Event | Count | Avg (ms) | Max (ms) | Total (ms) |",
|
||||
|
||||
Reference in new issue
Block a user