pub struct RenderStats {Show 14 fields
pub frames: u64,
pub item_rebuilds: u64,
pub markdown_bytes_parsed: u64,
pub markdown_bytes_scanned: u64,
pub markdown_prefix_bytes_copied: u64,
pub markdown_rows_generated: u64,
pub markdown_rows_materialized: u64,
pub max_live_rows: usize,
pub history_rows_inserted: u64,
pub highlight: HighlightStats,
pub ns_layout: u64,
pub ns_live: u64,
pub ns_draw: u64,
pub ns_item_rebuild: u64,
}Expand description
Work one Renderer did since the last
Renderer::take_stats, so tests can bound
per-frame rendering work by counting it instead of timing it.
Byte counters measure input re-processed, not output produced: an item whose rendering is O(content) every frame shows up as its content size again and again, whatever the drawn output looks like.
Fields§
§frames: u64§item_rebuilds: u64Item renders that ran rather than being served from a cache. A streaming item rebuilds as its content grows and an open tool call as its spinner moves; anything else rebuilding is wasted work.
markdown_bytes_parsed: u64§markdown_bytes_scanned: u64§markdown_prefix_bytes_copied: u64§markdown_rows_generated: u64§markdown_rows_materialized: u64§max_live_rows: usizeLargest live region any single render produced. Native scrollback commits are supposed to bound this to roughly the viewport height.
history_rows_inserted: u64§highlight: HighlightStats§ns_layout: u64§ns_live: u64§ns_draw: u64§ns_item_rebuild: u64Trait Implementations§
Source§impl Clone for RenderStats
impl Clone for RenderStats
Source§fn clone(&self) -> RenderStats
fn clone(&self) -> RenderStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RenderStats
Source§impl Debug for RenderStats
impl Debug for RenderStats
Source§impl Default for RenderStats
impl Default for RenderStats
Source§fn default() -> RenderStats
fn default() -> RenderStats
Returns the “default value” for a type. Read more
impl Eq for RenderStats
Source§impl PartialEq for RenderStats
impl PartialEq for RenderStats
impl StructuralPartialEq for RenderStats
Auto Trait Implementations§
impl Freeze for RenderStats
impl RefUnwindSafe for RenderStats
impl Send for RenderStats
impl Sync for RenderStats
impl Unpin for RenderStats
impl UnsafeUnpin for RenderStats
impl UnwindSafe for RenderStats
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.