You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add dump subcommand to python -m profiling.sampling for one-shot stack snapshots #149296
Add a dump subcommand to the sampling profiler that prints a single, immediate snapshot of a running Python process's stack similar to gdb's py-bt, but built on the existing _remote_debugging unwinder.
The output should be formatted like a traceback (most recent call last), with file paths, line numbers, source lines with caret-style highlights, optional bytecode opcode names, and per-thread status (main thread / has GIL / on CPU / waiting for GIL / has exception / idle).
It should support the same flags as run (as many as possible)
Activity
pythongh-149296: Add `dump` subcommand to sampling profiler for one-s…
gh-149296: Add `dump` subcommand to sampling profiler for one-shot st…