SIGN IN SIGN UP

gh-149296: Add `dump` subcommand to sampling profiler for one-shot stack snapshots (#149297)

Adds `python -m profiling.sampling dump <pid>`, which prints a single
traceback-style snapshot of a running process's Python stack via the
existing `_remote_debugging` unwinder. Supports per-thread status,
source line highlighting, optional bytecode opcodes, and async-aware
task reconstruction (`--async-aware`, default `--async-mode=all`).
P
Pablo Galindo Salgado committed
3efd2f4db6de0990136a9503910cbb36343ec0af
Parent: 2e94f14
Committed by GitHub <noreply@github.com> on 5/4/2026, 12:02:33 AM