Repository navigation
test: measure known-function wall-time shares in Pyroscope - #5
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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