Commit 764ef1f
authored
[python_cpu_sleep_sync_3.12] add CPU/sleep attribution scenario (PROF-14213) (#128)
* [python_cpu_sleep_sync_3.12] add CPU/sleep attribution scenario (PROF-14213)
New scenario that alternates 10 ms CPU bursts with 50 ms sleeps in sync
mode, asserting on (a) total CPU consumed (167M ns/wall-sec, ±25%) and
(b) cpu_burst self-attribution as % of cpu-time profile (50% ±15%).
The 50% baseline codifies the architectural attribution ceiling
documented in the python-cpu-accuracy survey (Finding 2): with 10 ms
bursts sampled at ~10 ms cadence, ~50% of CPU lands on the next sample's
stack — typically the sleep frame.
Adaptive sampling is disabled (_DD_PROFILING_STACK_ADAPTIVE_SAMPLING_ENABLED=0).
Also adds base_images/Dockerfile.python-3.12.
* [python_cpu_sleep_sync_3.12] restore upstream-CI comments in Dockerfile.python-3.12
Code-review follow-up: keep the 3.12 base image as a one-line diff against
the 3.11 template so the comment explaining DDTRACE_INSTALL_URL (used by
dd-trace-py downstream CI) and the commented-out DD_TRACE_DEBUG line stay
in sync across versions.1 parent 30d5247 commit 764ef1f
5 files changed
Lines changed: 74 additions & 0 deletions
File tree
- base_images
- scenarios/python_cpu_sleep_sync_3.12
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments