Repository navigation
Commit c87b3d9
authored
fix(runner-shared): always set PYTHONPERFSUPPORT (#577)
The runtime env only set PYTHONPERFSUPPORT=1 in memory mode. Since
exec-harness 1.4.0 relies on that env, Python exec targets in simulation
mode write no /tmp/perf-<pid>.map, and valgrind callgraphs lose every
Python frame. exec-harness 1.3.0 set it per command in simulation mode.
Set it in every mode. In walltime, PYTHON_PERF_JIT_SUPPORT=1 takes
precedence in CPython, so Linux still uses jitdump. On macOS walltime,
where jitdump stays off, Python now emits the perf map.
The perf trampoline adds instructions: a Python exec benchmark measured
under callgrind goes from 2.22e9 to 2.51e9 Ir (+13%), back to the 1.3.0
level.
Closes COD-38201 parent 24f182e commit c87b3d9
1 file changed
Lines changed: 5 additions & 7 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 20 | + | |
| 21 | + | |
24 | 22 | | |
0 commit comments