performanceSnapshot method
Returns a PerformanceMetricsSnapshot combining the given runtime metrics with widget-level timing data.
Implementation
PerformanceMetricsSnapshot performanceSnapshot(RenderMetrics? renderMetrics) {
return PerformanceMetricsSnapshot(
renderMetrics: renderMetrics,
widgetTimings: List.unmodifiable(_recentTimings),
widgetFrameCount: _widgetFrameCount,
);
}