stop_profiler
Stop a running Godot profiling capture and rank recorded functions by self time, total time, or call count to analyze game performance.
Instructions
Stop the capture started by start_profiler and rank the recorded functions; a capture that already hit its time limit is read back as-is, and can be re-read with a different sort. Times are elapsed, not CPU; inclusive rows overlap - never sum totalMs. Returns: the same payload as profile_project - rows (file, line, function, calls, selfMs/totalMs, per-frame averages, percentOfFrame, peak frame), frame budget, servers, worstFrame, frames, frameGaps, limitReached. Errors if no capture was started.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | How many functions to return, 1..100 (default: 20). | |
| sort | No | Rank by own time ("selfMs", default), inclusive time ("totalMs"), or invocation count ("calls"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| sort | No | ||
| frame | No | ||
| frames | No | ||
| seconds | No | ||
| servers | No | ||
| frameGaps | No | ||
| lastFrame | No | ||
| firstFrame | No | ||
| worstFrame | No | ||
| captureLimit | No | ||
| limitReached | No | ||
| framesReceived | No | ||
| functionsReceived | No | ||
| undecodablePackets | No | ||
| unresolvedFunctions | No |