mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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
|
@ -436,6 +436,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'hash_seed': 0,
|
||||
'faulthandler': 0,
|
||||
'tracemalloc': 0,
|
||||
'perf_profiling': 0,
|
||||
'import_time': 0,
|
||||
'code_debug_ranges': 1,
|
||||
'show_ref_count': 0,
|
||||
|
@ -520,6 +521,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
use_hash_seed=0,
|
||||
faulthandler=0,
|
||||
tracemalloc=0,
|
||||
perf_profiling=0,
|
||||
pathconfig_warnings=0,
|
||||
)
|
||||
if MS_WINDOWS:
|
||||
|
@ -828,6 +830,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'use_hash_seed': 1,
|
||||
'hash_seed': 123,
|
||||
'tracemalloc': 2,
|
||||
'perf_profiling': 0,
|
||||
'import_time': 1,
|
||||
'code_debug_ranges': 0,
|
||||
'show_ref_count': 1,
|
||||
|
@ -890,6 +893,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'use_hash_seed': 1,
|
||||
'hash_seed': 42,
|
||||
'tracemalloc': 2,
|
||||
'perf_profiling': 0,
|
||||
'import_time': 1,
|
||||
'code_debug_ranges': 0,
|
||||
'malloc_stats': 1,
|
||||
|
@ -921,6 +925,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'use_hash_seed': 1,
|
||||
'hash_seed': 42,
|
||||
'tracemalloc': 2,
|
||||
'perf_profiling': 0,
|
||||
'import_time': 1,
|
||||
'code_debug_ranges': 0,
|
||||
'malloc_stats': 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue