Python 3.15 Tachyon Profiler: Low-Overhead Sampling

Python 3.15 might be shipping one of the most exciting performance tools Python has added in a while, that too right after the GIL-free release. It is called Tachyon. Python is adding a new statistical sampling profiler under `profiling.sampling` called Tachyon, and the positioning is what caught my attention: - attach to a running Python process - no code changes - no restart - designed for low-overhead profiling - supports outputs like flamegraphs, speedscope-compatible stacks, Firefox Profiler, heatmaps, live TUI, async-aware views, and even opcode-level profiling The docs go even further and describe it as capable of sampling at up to 1,000,000 Hz and suitable for production performance debugging. With ML pipeline domination and RESTful servers now written increasingly in Python, this profiler will be a great addition. No longer will the notion of “run a profiler locally and hope the issue reproduces” carry on, and profiling becomes a first-class citizen, as in languages like Java. This is from the Python 3.15 alpha docs, so details may change before final release. But this is absolutely worth watching. A big thanks to the Python Software Foundation and Hugo van Kemenade for the updates and articles. Read more in the link below: https://lnkd.in/eUJ3C4N7 #Python #Python315 #Performance #Profiling #SystemsEngineering #Observability #Backend #SoftwareEngineering

To view or add a comment, sign in

Explore content categories