report method
Builds a structured summary of the latest capture state.
Implementation
ProgramRenderCaptureReport report({
String prefix = 'Render',
int maxFrameLines = 3,
}) {
final snapshot = lastSnapshot;
return ProgramRenderCaptureReport(
prefix: prefix,
metricEntries: toMetricEntries(prefix: prefix),
lastRenderGeneration: snapshot?.renderGeneration,
lastWidth: snapshot?.width,
lastHeight: snapshot?.height,
frameLines: snapshot == null
? const <String>[]
: snapshot.lines.take(maxFrameLines).toList(growable: false),
lastChangeSummary: stats.lastChangeSummary,
);
}