Skip to content

Expose all repeated measure durations in span queries - #219

Merged
jantimon merged 1 commit into
feat/span-timing-samplesfrom
feat/measure-occurrence-timings
Sep 6, 2026
Merged

Expose all repeated measure durations in span queries#219
jantimon merged 1 commit into
feat/span-timing-samplesfrom
feat/measure-occurrence-timings

Conversation

@jantimon

@jantimon jantimon commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Repeated named measures expose every recorded duration through query span --format json|toon. The timing block uses sampleUnit: "occurrence", since one iteration can emit several measures with the same name.

Chrome and Firefox derive these durations from each measure's start and end. Firefox's sampled profile window can differ from those bounds. The profile bar keeps the occurrence with the lower-median profiled wall time; timing statistics describe the full duration series. Missing series return null.

Includes capture-order storage, documentation, and a minor changeset. This PR builds on #218 and targets its branch.

Validation: 774 unit tests, six measurement tests, the focused Chrome record-to-query test, TypeScript build, lint, formatting, and unused-code checks pass. Tests cover six occurrences across three iterations, JSON and TOON output, missing series, and Firefox measure durations that differ from sampled profile windows.

@jantimon
jantimon merged commit c25e640 into main Sep 6, 2026
4 checks passed
@jantimon
jantimon deleted the feat/measure-occurrence-timings branch September 6, 2026 13:23
@github-actions github-actions Bot mentioned this pull request Sep 6, 2026
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.

1 participant