WorkCounter

class WorkCounter(names: List<String>)(source)

Bounded owner-thread application invocation counters with caller-defined stable names. Only counters are retained; snapshots and serialization belong outside sample boundaries. Overflow fails the invoking operation instead of wrapping into apparently valid work.

Constructors

Link copied to clipboard
constructor(names: List<String>)

Functions

Link copied to clipboard
fun record(index: Int)

Records one invocation at the caller's registered ordinal.

Link copied to clipboard
fun reset()

Starts a fresh interval without allocating or changing counter identities.

Link copied to clipboard

Transfers detached actual counts for work assertions and evidence.