Health Memory Debug

Read-only memory-leak diagnostics. 404s unless memory_debug_token is configured and matches token — inert in normal operation.

Always returns a gc object-type histogram (which TYPE is multiplying). Drive tracemalloc explicitly: trace=start captures a baseline, trace=diff (later) returns the allocation SITES (file:line) that grew since — i.e. where the leak is — and trace=stop ends tracing. Snapshots use depth 1 and the whole collection runs in a worker thread so it never blocks the event loop; tracing is never auto-started or auto-snapshotted.

get/health/memory/debug

Query parameters

tokenstring
tracestring

'start' | 'diff' | 'stop' | ''

'start' | 'diff' | 'stop' | ''

topinteger

Response

Successful Response

{"stackTrail":"paths:/health/memory/debug:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.