setRenderStats method
Adds or updates overlay metrics derived from runtime render monitoring.
This forwards the formatted entries from stats into the existing
custom-metrics channel used by built-in debug overlays.
Implementation
void setRenderStats(
ProgramRenderStats stats, {
String prefix = 'Render',
bool replace = false,
}) {
setMetrics(stats.toMetricEntries(prefix: prefix), replace: replace);
}