Skip to main content

PerfMeasurement

Struct PerfMeasurement 

Source
pub struct PerfMeasurement {
Show 27 fields pub name: String, pub samples: u64, pub mean_us: u64, pub median_us: u64, pub p95_us: u64, pub min_us: u64, pub max_us: u64, pub rebuilt_frames: u64, pub rendered_frames: u64, pub idle_frames: u64, pub rendered_mean_us: u64, pub rendered_p95_us: u64, pub rendered_max_us: u64, pub missed_120fps_frames: u64, pub missed_60fps_frames: u64, pub measurement_cache_hits: u64, pub measurement_cache_misses: u64, pub scene_layers: u64, pub vello_scene_layers: u64, pub gpu_surface_layers: u64, pub clip_layers: u64, pub max_clip_depth: u64, pub applied_filter_count: u64, pub applied_filter_capture_us: u64, pub applied_filter_effect_us: u64, pub phases: PerfPhases, pub frames: Vec<PerfFrame>,
}
Expand description

Aggregated statistics of one perf measurement.

Fields§

§name: String

Scenario name.

§samples: u64

Recorded sample count.

§mean_us: u64

Mean frame time in microseconds.

§median_us: u64

Median frame time in microseconds.

§p95_us: u64

95th-percentile frame time in microseconds.

§min_us: u64

Minimum frame time in microseconds.

§max_us: u64

Maximum frame time in microseconds.

§rebuilt_frames: u64

Frames that performed a structural rebuild.

§rendered_frames: u64

Frames that rendered.

§idle_frames: u64

Frames that did no work.

§rendered_mean_us: u64

Mean frame time of rendered frames in microseconds.

§rendered_p95_us: u64

95th-percentile frame time of rendered frames in microseconds.

§rendered_max_us: u64

Maximum frame time of rendered frames in microseconds.

§missed_120fps_frames: u64

Frames exceeding the 120 fps budget.

§missed_60fps_frames: u64

Frames exceeding the 60 fps budget.

§measurement_cache_hits: u64

Measurement-cache hits across the run.

§measurement_cache_misses: u64

Measurement-cache misses across the run.

§scene_layers: u64

Compositor scene layers submitted.

§vello_scene_layers: u64

Vello scene layers submitted.

§gpu_surface_layers: u64

GPU surface layers submitted.

§clip_layers: u64

Clip layers pushed.

§max_clip_depth: u64

Maximum clip depth reached.

§applied_filter_count: u64

Applied filter count.

§applied_filter_capture_us: u64

Applied filter capture time in microseconds.

§applied_filter_effect_us: u64

Applied filter effect time in microseconds.

§phases: PerfPhases

Frame phase aggregates.

§frames: Vec<PerfFrame>

Per-frame samples.

Trait Implementations§

Source§

impl Clone for PerfMeasurement

Source§

fn clone(&self) -> PerfMeasurement

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PerfMeasurement

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PerfMeasurement

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for PerfMeasurement

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.