ReadonlyobserverObserver to hand to setPhaseObserver. Bound, so it can be passed directly.
Discards every recorded span.
Summarizes the recorded spans, ordered by total time descending.
One PhaseStats entry per phase that recorded at least one span
Collects spans and summarizes them per phase.
This is the counterpart to setPhaseObserver for callers that want a table rather than a stream: attach PhaseCollector.observer, run a workload, then read PhaseCollector.stats.
Since
1.4.0
Example