EventLoop.diagnostics

ResourceUsage diagnostics() const @safe nothrow @nogc

Get a snapshot of current diagnostics.

This is the primary production monitoring entry point. It returns a ResourceUsage snapshot that includes cumulative counters (iterationCount, wakeupCount, errorCount, limitRejectionCount) alongside the instantaneous resource levels also available via usage.

The method is @nogc and does not allocate.

Returns

Snapshot of current resource usage and diagnostic counters.