mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
gh-96143: Allow Linux perf profiler to see Python calls (GH-96123)
⚠️ ⚠️ Note for reviewers, hackers and fellow systems/low-level/compiler engineers ⚠️ ⚠️ If you have a lot of experience with this kind of shenanigans and want to improve the **first** version, **please make a PR against my branch** or **reach out by email** or **suggest code changes directly on GitHub**. If you have any **refinements or optimizations** please, wait until the first version is merged before starting hacking or proposing those so we can keep this PR productive.
This commit is contained in:
parent
0f733fffe8
commit
6d791a9736
24 changed files with 1412 additions and 2 deletions
|
|
@ -1155,6 +1155,20 @@ PyConfig
|
|||
|
||||
Default: ``-1`` in Python mode, ``0`` in isolated mode.
|
||||
|
||||
.. c:member:: int perf_profiling
|
||||
|
||||
Enable compatibility mode with the perf profiler?
|
||||
|
||||
If non-zero, initialize the perf trampoline. See :ref:`perf_profiling`
|
||||
for more information.
|
||||
|
||||
Set by :option:`-X perf <-X>` command line option and by the
|
||||
:envvar:`PYTHONPERFSUPPORT` environment variable.
|
||||
|
||||
Default: ``-1``.
|
||||
|
||||
.. versionadded:: 3.12
|
||||
|
||||
.. c:member:: int use_environment
|
||||
|
||||
Use :ref:`environment variables <using-on-envvars>`?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue