RuntimeWorkAccumulator

Bounded aggregation of complete per-sample runtime diagnostics on the application's owner thread. Retired node identities are discarded after each snapshot, outside the measured operation. A single overflowing sample still fails; global counts never stand in for truncated node evidence.

Parameters

owner

the actual measured runtime diagnostics owner.

Constructors

Link copied to clipboard
constructor(owner: Any)

Functions

Link copied to clipboard
fun capture()

Captures a complete sample and clears retired records before the next application update. Failures poison the interval and cannot be retried into a successful report.

Link copied to clipboard
open override fun close()

Terminally releases monitoring and aggregate storage without closing the application.

Link copied to clipboard
fun snapshot(): JsonObject

Returns detached totals from successful samples and the final and maximum subscription gauges.