snapshot static method
An immutable copy of everything recorded so far. Empty stats when recording was never enabled.
Implementation
static PdfPerfStats snapshot() {
final phaseUs = _phaseUs;
if (!kPdfPerfCompiledIn || phaseUs == null) return PdfPerfStats.empty();
return PdfPerfStats._(
List<int>.of(phaseUs),
List<int>.of(_phaseCalls!),
List<int>.of(_counts!),
List<int>.of(_events!),
);
}