pub struct FrameMetrics {
pub input_to_present_ms: Option<f64>,
pub style_ms: Option<f64>,
pub layout_ms: Option<f64>,
pub resolve_ms: f64,
pub scene_ms: f64,
pub submit_ms: Option<f64>,
pub present_ms: Option<f64>,
pub renderer_ms: f64,
pub total_ms: f64,
pub age_ms: f64,
}Expand description
Timings of one real presented frame, in milliseconds.
Every Option here is a value blitz does not measure. They are left empty on
purpose: a plausible-looking zero is worse than an admitted gap, because it
makes a missing measurement look like a fast one.
Fields§
§input_to_present_ms: Option<f64>Wall time from the input event that caused the frame to the frame reaching the screen. Blitz does not stamp input events with an arrival time and the renderer reports no present timestamp, so there are no two clocks to subtract.
style_ms: Option<f64>Style recalculation alone. Blitz runs style and layout inside a single
resolve pass and times only the pass, so the combined cost is in
resolve_ms instead.
layout_ms: Option<f64>Layout alone. See style_ms.
resolve_ms: f64Style plus layout, i.e. the resolve pass.
scene_ms: f64Scene building: the paint_scene call that turns the resolved document
into renderer commands.
submit_ms: Option<f64>GPU submit alone. The renderer reports encode, submit and present as one
figure, which is in renderer_ms.
present_ms: Option<f64>Present alone. See submit_ms.
renderer_ms: f64Everything the renderer did outside scene building: encode, submit and present.
total_ms: f64resolve_ms + scene_ms + renderer_ms. CPU time inside redraw, not
input-to-photon latency.
age_ms: f64How long ago the frame started, measured when this response was built. A large value means the app has been idle and these numbers are stale.
Trait Implementations§
Source§impl Clone for FrameMetrics
impl Clone for FrameMetrics
Source§fn clone(&self) -> FrameMetrics
fn clone(&self) -> FrameMetrics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more