cpython/Lib/test/test_profiling/test_sampling_profiler
Pablo Galindo Salgado 3efd2f4db6
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`).
2026-05-04 01:02:33 +01:00
..
__init__.py
_live_collector_helpers.py
helpers.py
mocks.py gh-138122: Add differential flame graph (#145785) 2026-03-30 12:31:06 +01:00
test_advanced.py gh-138122: Move local imports to module level in sampling profiler (#143257) 2026-01-02 02:31:39 +00:00
test_async.py gh-138122: Move local imports to module level in sampling profiler (#143257) 2026-01-02 02:31:39 +00:00
test_binary_format.py gh-135953: Properly obtain main thread identifier in Gecko Collector (#146045) 2026-03-22 18:53:00 +00:00
test_blocking.py
test_children.py gh-138122: Move local imports to module level in sampling profiler (#143257) 2026-01-02 02:31:39 +00:00
test_cli.py gh-149296: Add dump subcommand to sampling profiler for one-shot stack snapshots (#149297) 2026-05-04 01:02:33 +01:00
test_collectors.py gh-142927: Show module names instead of file paths in flamegraph (#146040) 2026-04-29 10:00:07 +01:00
test_dump.py gh-149296: Add dump subcommand to sampling profiler for one-shot stack snapshots (#149297) 2026-05-04 01:02:33 +01:00
test_integration.py gh-138122: Move local imports to module level in sampling profiler (#143257) 2026-01-02 02:31:39 +00:00
test_live_collector_core.py
test_live_collector_interaction.py Test: remove unintended unittest.main() in live collector tests (#143590) 2026-01-09 08:49:54 +00:00
test_live_collector_ui.py
test_modes.py gh-138122: Move local imports to module level in sampling profiler (#143257) 2026-01-02 02:31:39 +00:00
test_profiler.py gh-149296: Add dump subcommand to sampling profiler for one-shot stack snapshots (#149297) 2026-05-04 01:02:33 +01:00
test_trend_tracker.py