Add reusable reporting and native snapshot analytics - #4
Open
thinkingfish wants to merge 4 commits into
Open
thinkingfish wants to merge 4 commits into
thinkingfish wants to merge 4 commits into
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.
Adds interval reporting and snapshot analytics while preserving the existing counter-only recording path. Dense histograms gain reset, reusable snapshot/drain, transactional checked addition and a private-output checked sum. Scalar queries avoid batch containers; caller-buffer queries reuse result arrays, and allocating sparse batches now traverse sparse storage in sorted query order.
Sparse/cumulative merge and downsampling avoid dense reconstruction, cumulative snapshots decumulate directly, and transformed means are recomputed. Reporting/conversion rejects unsigned overflow; p100 uses the exact total even above floating-point integer precision. Existing recording and dense merge/downsample wrapping semantics remain intact. README explains phase selection, ownership, unsigned counts and fixed-size storage; a JMH harness separates reporting and analytics costs.
Validation: Java 17 Maven tests/install/package, JMH package and all 21 benchmark smoke methods with GC profiling. Independent cross-port review findings addressed. Smoke timings establish harness execution only; no port speedup claims or new runtime dependencies.
Local review follow-up:
CHANGELOG.md now explicitly identifies sparse zero normalization, checked report/cumulative total limits, and empty-buffer semantics as compatibility/Rust interoperability considerations. Local review found no confirmed defect; Java17/21 CI passed.