Start performance trace
performance_start_traceRecord a Chrome performance trace to identify what slows down page load or interactions, capturing rendering, scripting, loading, screenshots, and V8 CPU usage.
Instructions
Record a Chrome performance trace of page load or interaction.
Captures the same DevTools timeline categories the Performance panel uses: rendering, scripting, loading, screenshots and the V8 CPU profile.
With the defaults (reload + auto_stop) this is one self-contained call that reloads, records for ~5s and returns. Only one trace can run at a time.
Pass file_path to keep the data — without it you get just an event count, which confirms the trace ran but says nothing about what it measured. The output is raw trace JSON: load it via DevTools -> Performance -> Load profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reload | No | Reload the page after starting the trace so the recording covers page load. Default true, which is what you want for load performance; set false to profile the page as it currently stands. | |
| auto_stop | No | Record for about 5 seconds, then stop and return the result in this same call. Default true. Set false to control the window yourself and end it with performance_stop_trace. | |
| file_path | No | Write the raw trace JSON to this local path. Omit to get only the collected event count back. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |