Skip to content

Add reusable reporting and native snapshot analytics - #4

Open
thinkingfish wants to merge 4 commits into
mainfrom
feat/report-analytics-parity
Open

thinkingfish wants to merge 4 commits into
mainfrom
feat/report-analytics-parity

Conversation

@thinkingfish

@thinkingfish thinkingfish commented Sep 15, 2026

Copy link
Copy Markdown
Member

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.

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