Python 3.15 will include a new sampling profilerdocs.python.org4 points·by nicolasp·hace 9 meses·1 comments
nicolasp·hace 9 meses·discussKey features include:* 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
nicolasp·el año pasado·discussWait times are in the order of tens of milliseconds instead of seconds. That makes a massive difference in how nice uv is to use vs pip.
nicolasp·hace 2 años·discussYou can put these options in a config file and they will become the default: https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#configur...
* 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