PerformanceJson

Detached JVM report serialization, shared by every consumer and host adapter.

Functions

Link copied to clipboard
fun collectorIdentity(): JsonObject

Records actual collector bytes separately from the measured application and Strata runtime. A collector change requires fresh evidence on both sides of a comparison.

Link copied to clipboard
fun diagnostics(snapshot: Any): JsonObject

Captures complete runtime diagnostics; truncated node inventories cannot satisfy work assertions.

Link copied to clipboard
fun distribution(values: List<Long>): JsonObject

Serializes a nonempty distribution using explicit nanosecond units.

Link copied to clipboard
fun frame(report: JsonObject, frame: Any)

Records actual frame inventory and ordered semantics without retaining the frame.

Link copied to clipboard
fun work(snapshot: JsonObject): Map<String, Long>

Projects complete detached diagnostic counts and gauges for declarative work expectations.

Link copied to clipboard
fun write(path: Path, report: JsonObject)

Saves evidence outside timed intervals; failure is propagated to the caller.

Link copied to clipboard
fun writeNew(path: Path, report: JsonObject)

Publishes a new collector-bound receipt outside timing, refusing to replace any existing evidence.