Skip to content

test: measure known-function wall-time shares in Pyroscope - #5

Merged
bbik52 merged 1 commit into
mainfrom
feature/profile-share-accuracy
Nov 18, 2026
Merged

bbik52 merged 1 commit into
mainfrom
feature/profile-share-accuracy

Conversation

@bbik52

@bbik52 bbik52 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #4.

Add a separate known-function wall-time share probe and complete recorded evidence. The existing total-weight conservation campaign is not rerun. Expected alpha/beta proportions come from independent hrtime measurements around the actual function calls; observations come from inclusive node weights read back from live Pyroscope after real Go-agent delivery.

All 18 predeclared cases pass: PHP/PHP 70:30 and 20:80 plus PHP/usleep 70:30, at 100/1000 Hz, three jittered repetitions each. Maximum absolute share error is 1.044 percentage points (limit 5), median 0.066 pp; maximum unclassified weight is 0.183% (limit 1%). All 18 total-preserving swapped-symbol negative controls fail as required. Source/backend per-function weights agree exactly.

Record the complete matrix, seeds, per-cycle elapsed-time oracle, raw Querier responses, runtime/image identities, a result table and figure. Add a manual Make target, strict checker regression tests and an optional Matplotlib figure command. Existing CI discovers the lightweight tests; no CI workflow, profiler, agent or Symfony production code changes.

Validation

  • Full serial 18-case run on core 37e5928506cee2b1c395c2c8d01e89f2bf43a6b8, agent a15f0d310ba6d5942e67b37d3c3c55dc1b3b8100, PHP 8.5.12, Excimer 1.2.7 and fresh Pyroscope 2.4.3. Every run meets its 3000/9000 weighted-period floor. Core/agent pins and measured input hashes remain unchanged at completion.
  • Python regression suite: 30 tests pass, including 14 share-check/matrix cases (wrong split despite preserved total, unclassified weight, exact boundaries, insufficient volume and malformed/missing markers).
  • PHP syntax, Python compilation, existing shell syntax, docker compose config and git diff --check pass. The report figure was generated and visually inspected; the complete archived evidence was decoded and verified.
  • Startup probes are not promoted to matrix results. A 2-second probe correctly failed its volume floor; cold-backend first-query visibility required more time than HTTP readiness. The final runner allows 300 seconds for readback, outside sampling, without changing any accuracy thresholds.
  • GitHub Checks pass on ad4320e, including all 30 tests and the existing shell/Compose checks. No review threads are outstanding.

Limits

This is aggregate wall-time evidence for selected CLI workloads on measured develop snapshots, not final-RC certification, independent Bernoulli-trial statistics or a universal <=5 pp promise. It does not establish CPU-mode or FPM/RR/Swoole share accuracy, arbitrary C-call timelines, overhead or long-term stability. The oracle describes the profiled execution, not a separate unprofiled CPU baseline. The running 72h soak VPS was not contacted or modified.

Checklist

  • The PR title follows Conventional Commits.
  • The repository's applicable local checks pass.
  • Verification covers the change; no checks were weakened to obtain a pass.
  • Methodology, reproducible commands, evidence and limitations are documented.
  • No profiling changes are added to host applications; the synthetic workload is isolated.
  • GitHub Checks pass on the final commit.

@bbik52
bbik52 merged commit 104b3bc into main Nov 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Measure known-function wall-time share accuracy in Pyroscope

1 participant