jlfwong / jlfwong/speedscope

Support for Python 3.15 `profiling.sampling`?

Open
#528 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.8k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

Python 3.15, currently in alpha, is planned to include a new built-in sampling profiler. The [What's new](https://docs.python.org/3.15/whatsnew/3.15.html#whatsnew315-sampling-profiler) page, perhaps misleadingly, attributes it to [PEP 799](https://peps.python.org/pep-0799/), but the PEP itself doesn't actually describe the profiler, just suggests a new naming scheme for profilers / deprecation of old `profile`.

The `profiling.sampling` profiler contains an option to output "[collapsed stack traces for flamegraphs](https://docs.python.org/3.15/library/profile.html#cmdoption-profiling.sampling-collapsed)." It would be fantastic if this format was supported by Speedscope.

- If it is a common format that is already supported, the new profiler could be added to the list of supported profilers in the README.
- Otherwise, maybe this new format could be added to Speedscope as a new feature.
- If neither, maybe one of the existing Python profilers exporting Speedscope compatible data could use `profiling.sampling` as a new backend.

What is the best approach here?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.