Skip to reading
Debugging and Performance Profiling

Choose what to record

Edition 0.86.4.5

New 0.86.4.5 field guide. Complements the existing Error Handling & Debugging manual. Benchmark and regression figures are worked examples from the guide, not general performance guarantees. Native GDScript line debugging and engine-level profiling use Godot tools.

Download PDFView PDF page

CAPTURE SETUP / RUNTIME PREVIEW

Source table from Choose what to record, page 2
ModeUse it whenWhat to expect
CountersYou need counts or want the lightest active capture.Totals are available. Individual event rows and frame distributions are absent.
TraceA door stays shut, an event fires twice or a script follows the wrong branch.Ordered event rows, source links and execution boundaries.
ProfileA scene hitches or CPU work appears costly.Frame intervals, percentiles and timed instrumented work alongside events.
DeepOne invocation needs closer inspection.Enter its trace ID under Capture, or leave deep trace at 0 to follow the next root.

In Capture, set options before Start. For a short hitch test, try a 15-second limit 1 and 2 seconds of warm-up. Warm-up excludes early frame samples. For a startup problem use 0 so you can examine the beginning.

Leave the capture categories blank for a first investigation. A collection filter 2 such as gui,graph,node,action narrows what is saved. The Events search only changes which saved rows you see. Clear collection filters before chasing a missing caller.

Press Start, recreate the symptom once, and press Mark near it. Look for the 3 user marker later. Choose Stop capture before exporting. Starting again begins a fresh session, so export data you want to keep.

Three different ways to pause#

Freeze display holds the view while recording continues. Pause / resume recording suspends collection. A breakpoint suspends the selected invocation at a supported boundary while the rest of the game can keep running.

Page 2 of 13Permalink
Go to page