pub struct RendererMetrics {
pub revisions: RevisionSet,
pub queue_depth: Option<u64>,
pub invalidations_coalesced: u64,
pub frame: Option<FrameMetrics>,
pub frame_window: Option<FrameWindowMetrics>,
pub snapshot: Option<SnapshotCost>,
pub script: Option<ScriptMetrics>,
pub resident_bytes: Option<u64>,
}Fields§
§revisions: RevisionSet§queue_depth: Option<u64>Depth of a pending-work queue in front of the renderer.
Blitz has no such queue: View::redraw resolves, paints and presents
inline on the event-loop thread. The one queue that exists, ScriptQueue,
lives inside the Tauri webview dispatcher and is not reachable from the
runtime, so this stays None rather than reporting a constant zero that
reads like a measured “nothing is backed up”.
invalidations_coalesced: u64§frame: Option<FrameMetrics>The most recently presented frame, as measured by blitz-shell.
None until the window has drawn at least once.
frame_window: Option<FrameWindowMetrics>Mean, p95 and worst case across the last few hundred presented frames.
snapshot: Option<SnapshotCost>Cost of collecting this diagnostic snapshot. This measures the observer, not the application, and is reported separately so the two are never confused again.
script: Option<ScriptMetrics>What script execution cost, per backend poll.
The frame numbers above cover resolve, paint and present, which is the
engine. Reactivity, event handlers, timers and microtasks are none of
those, so an application could present a 4ms frame and still feel slow
with nothing here to explain it. None until script has actually run.
resident_bytes: Option<u64>Trait Implementations§
Source§impl Clone for RendererMetrics
impl Clone for RendererMetrics
Source§impl Debug for RendererMetrics
impl Debug for RendererMetrics
Source§impl Default for RendererMetrics
impl Default for RendererMetrics
Source§impl<'de> Deserialize<'de> for RendererMetrics
impl<'de> Deserialize<'de> for RendererMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for RendererMetrics
impl JsonSchema for RendererMetrics
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for RendererMetrics
impl PartialEq for RendererMetrics
Source§impl Serialize for RendererMetrics
impl Serialize for RendererMetrics
impl StructuralPartialEq for RendererMetrics
Auto Trait Implementations§
impl Forget for RendererMetrics
impl Freeze for RendererMetrics
impl Move for RendererMetrics
impl RefUnwindSafe for RendererMetrics
impl Send for RendererMetrics
impl Sync for RendererMetrics
impl Unpin for RendererMetrics
impl UnsafeUnpin for RendererMetrics
impl UnwindSafe for RendererMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> Brush for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more