performance_stop_trace shows no CPU/Wasm hotspots on compute-heavy UI
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript, wasm
- Domain
- devtools, observability, performance
Research direction
Start with src/tools/performance.ts, especially the existing JsSampling trace setup, and trace how performance_stop_trace and performance_analyze_insight produce summaries. Locate the parser and related performance-tool tests before adding JS/Wasm self-time and total-time hotspots, with LoAF timing when available. Done means recorded traces expose a compact CPU/Wasm hotspot summary instead of only DOM/network insights, covered by tests for representative trace data.
Written by the indexing model from the issue text.
Description
When profiling <canvas>, WebGL/3D, or WebAssembly applications (e.g. Three.js, Unity/PixiJS, or Flutter Web skwasm/canvaskit), performance_stop_trace and performance_analyze_insight return only DOM/network Core Web Vitals insights (LCPBreakdown, RenderBlocking, DocumentLatency, CLSCulprits, INPBreakdown), giving agents zero visibility into where main-thread CPU or Wasm execution time was spent.
User problem
- On
<canvas>and WebGL/Wasm apps, DOM LCP fires immediately as soon as the<canvas>element mounts, while actual bottlenecks happen after mount inside JS/Wasm compute, shader compilation, or longrequestAnimationFramecallbacks. performance_start_tracealready enables V8 CPU and Wasm sampling (DevTools.TracingOptionalCategories.JsSamplinginsrc/tools/performance.ts#L74-L79), so the sampled call tree is already captured in the trace—agents just have no way to read it without writing custom script parsers against a raw.json.gzfile.
Possible directions
- Surface a compact bottom-up JS/Wasm CPU summary (e.g. top functions by self-time and total-time from the recorded
JsSamplingprofile) in the trace summary or via an insight/tool on the recorded trace. - Include long animation frame (
LoAF/requestAnimationFrame) timing when present so agents can spot janky frames on canvas/WebGL workloads.
- Dominant language
- TypeScript
- Stars
- 59.8k
- Forks
- 4.8k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 162
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ChromeDevTools/chrome-devtools-mcp
-
feature
Difficulty 1/5 Under an hour Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#3689 ·
Maintainers usually reply within 1 day
-
`evaluate_script` `sourcePath` http(s) URLs are mangled into `file://` pathsMay be free again A pull request for this issue was closed without being merged. Opencollecting-feedback
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#3453 · 3 comments ·
Maintainers usually reply within 1 day
-
collecting-feedback feature
Difficulty 2/5 Half a day Newbie friendliness 76/100
ChromeDevTools/chrome-devtools-mcp#3225 · 3 comments ·
Maintainers usually reply within 1 day
-
confirmed p3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#2947 · 1 comment ·
Maintainers usually reply within 1 day
-
Project Migration: Moving to devtools-frontendPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
ChromeDevTools/chrome-devtools-mcp#3648 ·
Maintainers usually reply within 1 day
All issues in ChromeDevTools/chrome-devtools-mcp
Similar issues
-
bug from-app needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nightly-labs/openbot#21303 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ADORSYS-GIS/CoopData#282 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OHDSI/Data2Evidence#3816 ·
Maintainers usually reply within 3 days
-
`ovsx verify` fails for a version older than the 100 newest of an extensionPossibly taken @trivikr claimed this today. Opencli
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
eclipse-openvsx/openvsx#2482 · 2 comments ·
Maintainers usually reply within 1 day
-
bug builder-vite hmr sev:S3
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
storybookjs/storybook#37965 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day