Python 3.15 will include a new sampling profiler Posted by nicolasp on Tuesday October 14, 2025 @02:23PM from the docs.python.org dept. https://docs.python.org/3.15/whatsnew/3.15.html#pep-799-high-frequency-statistical-sampling-profiler ( 1 comment | 3 points | on HN )
* Zero-overhead profiling: Attach to any running Python process without affecting its performance
* No code modification required: Profile existing applications without restart
* Real-time statistics: Monitor sampling quality during data collection
* Multiple output formats: Generate both detailed statistics and flamegraph data
* Thread-aware profiling: Option to profile all threads or just the main thread