Stop performance trace
performance_stop_traceStops an in-progress performance trace and collects recorded data. Designed for traces launched with auto_stop disabled; optionally writes raw JSON to a file.
Instructions
Stop the running performance trace and collect its data.
Only needed when performance_start_trace was called with auto_stop=false — otherwise the trace has already ended and this returns an error.
Waits up to 30 seconds for Chrome to flush its buffered events.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Write the raw trace JSON to this local path (e.g. "trace.json"), loadable in DevTools -> Performance. Omit to get only the event count. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |