Skip to content
Profiling Python: From cProfile to Sampling (sps26) episode artwork

Oct 22, 2026 29 min

Profiling Python: From cProfile to Sampling (sps26)

from Chaos Computer Club - recent audio-only feed Hosted by Farid Mirzayev

Python developers have long faced a frustrating tradeoff: the more precisely you measured performance, the more you risked changing it. Traditional profilers like `profile` and `cProfile` trace every function call, providing exact call counts and instrumented timings at the cost of significant overhead. The ecosystem fought back. Tools like `py-spy` and `austin` embraced statistical sampling, attaching to running processes and gathering useful insights with minimal impact. Yet statistical sampling remained outside the Python standard library. Python 3.15 changes that. The new `profiling.sampling` module, also known as Tachyon, brings statistical profiling into the standard library, building on years of community experimentation. In this talk, we'll compare tracing and sampling profilers, exploring how each approach works, where it struggles, and how sampled stacks become flame graphs. By profiling the same code with different tools, we'll see how each profiler reveals a different picture of performance - and why choosing the right tool matters. Problem Statement: Most Python developers reach for `cProfile` because it's built in, often without realizing its limitations or knowing modern alternatives exist. Sampling profilers have been available for years, but many developers have not encountered them. This talk closes that gap. Attendees will leave knowing: Deterministic vs statistical profiling and why it matters, When `cProfile` helps - and when it can mislead, How and when to use Python 3.15's `profiling.sampling`, How to choose the right profiler for the job. about this event: https://talks.python-summit.ch/swiss-python-summit-2026/talk/WJCKGM/

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Profiling Python: From cProfile to Sampling (sps26)

0:00 29:02

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Chaos Computer Club - recent audio-only feed?

This episode is 29 minutes long.

When was this Chaos Computer Club - recent audio-only feed episode published?

This episode was published on October 22, 2026.

Can I download this Chaos Computer Club - recent audio-only feed episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.