stats property
ViewStats
get
stats
What the view did since it was made, and the GPU memory it holds now. Subtract an earlier one for the counts in between.
Implementation
ViewStats get stats {
final s = scratch.viewStats;
check(fy_view_stats(_live, s));
final r = s.ref;
return ViewStats(
posted: r.posted,
rendered: r.rendered,
coalesced: r.coalesced,
skipped: r.skipped,
presented: r.presented,
dropped: r.dropped,
textureBytes: r.texture_bytes,
meshBytes: r.mesh_bytes,
skyBytes: r.sky_bytes,
shadowBytes: r.shadow_bytes,
targetBytes: r.target_bytes,
frameBytes: r.frame_bytes,
behindBytes: r.behind_bytes,
bloomBytes: r.bloom_bytes,
effectBytes: r.effect_bytes,
busy: Duration(microseconds: r.busy_micros),
gpu: r.gpu_frames == 0
? const GpuTimes()
: GpuTimes(
frames: r.gpu_frames,
shadows: Duration(microseconds: r.gpu_shadows_micros),
skyLight: Duration(microseconds: r.gpu_sky_light_micros),
ambientOcclusion: Duration(microseconds: r.gpu_ambient_occlusion_micros),
scene: Duration(microseconds: r.gpu_scene_micros),
bloom: Duration(microseconds: r.gpu_bloom_micros),
finish: Duration(microseconds: r.gpu_finish_micros),
effects: Duration(microseconds: r.gpu_effects_micros),
untimed: r.gpu_untimed_passes,
),
);
}