Skip to content

Commit 1c712f1

Browse files
committed
Add profiling.sampling documentation
The sampling profiler is new in Python 3.15 and works fundamentally differently from the tracing profiler. It observes programs from outside by periodically capturing stack snapshots, which means zero overhead on the profiled code. This makes it practical for production use where you can attach to live servers. The docs explain the key concepts (statistical vs deterministic profiling), provide quick examples upfront, document all output formats (pstats, flamegraph, gecko, heatmap), and cover the live TUI mode. The defaults table helps users understand what happens without any flags.
1 parent ff62d3d commit 1c712f1

File tree

1 file changed

+755
-0
lines changed

1 file changed

+755
-0
lines changed

0 commit comments

Comments
 (0)