pub struct GridStats { /* private fields */ }Expand description
Counters for profiling a grid.
Implementations§
Source§impl GridStats
impl GridStats
Sourcepub fn last_rebuild(&self) -> Duration
pub fn last_rebuild(&self) -> Duration
CPU time of the last rebuild (background thread).
Sourcepub fn max_rebuild(&self) -> Duration
pub fn max_rebuild(&self) -> Duration
CPU time of the slowest rebuild.
Sourcepub fn last_prepaint(&self) -> Duration
pub fn last_prepaint(&self) -> Duration
CPU time of the last frame plan (prepaint of the body).
Sourcepub fn last_header_render(&self) -> Duration
pub fn last_header_render(&self) -> Duration
CPU time of the last header build (its elements, in render).
Sourcepub fn last_pull(&self) -> Duration
pub fn last_pull(&self) -> Duration
CPU time of applying the last store snapshot on the UI thread: the pull, with what removals do to the selection and the focus.
Sourcepub fn fade_wakeups(&self) -> u64
pub fn fade_wakeups(&self) -> u64
Repaints caused only by the highlight fade timer.
Sourcepub fn visible_cells(&self) -> usize
pub fn visible_cells(&self) -> usize
Cells planned in the last frame.
Sourcepub fn icons(&self) -> usize
pub fn icons(&self) -> usize
Icons painted in the body in the last frame: change arrows
(CellStyle::set_trend), icons at the start of cells and icons of
CellValue::Icon cells.
Sourcepub fn images(&self) -> usize
pub fn images(&self) -> usize
Images painted in the body in the last frame: the CellValue::Image
cells whose image was ready.
Sourcepub fn compactions(&self) -> u64
pub fn compactions(&self) -> u64
Projections compacted after removals (no sorting).
Sourcepub fn tombstones(&self) -> usize
pub fn tombstones(&self) -> usize
Removed rows skipped while painting the last frame, before the projection caught up: rows without a removal fade, and fading rows whose fade ended.
Sourcepub fn fading_lines(&self) -> usize
pub fn fading_lines(&self) -> usize
Removed rows painted fading out in the last frame
(HighlightPolicy::with_removal_fade).
Sourcepub fn painted_captions(&self) -> usize
pub fn painted_captions(&self) -> usize
Group captions painted in the last frame.
Sourcepub fn a11y_rows(&self) -> usize
pub fn a11y_rows(&self) -> usize
Row nodes of the accessibility tree planned in the last frame: the painted data and pinned rows, and group captions. Zero while accessibility is off.
Sourcepub fn a11y_cells(&self) -> usize
pub fn a11y_cells(&self) -> usize
Synthetic cell nodes planned in the last frame: the painted cells but the focused one. Zero while accessibility is off.
Sourcepub fn last_a11y_plan(&self) -> Duration
pub fn last_a11y_plan(&self) -> Duration
CPU time of the last frame’s accessibility plan, after the cell walk
gathered its texts. Zero while accessibility is off. With
LiveGridState::set_a11y_forced in a window whose accessibility is
off (headless tests and benchmarks), it also builds the nodes GPUI
would build from the plan, so it times both.
Sourcepub fn tree_cycles(&self) -> usize
pub fn tree_cycles(&self) -> usize
Rows of the tree shown made roots because their parents form a cycle
(Projection::tree_cycles); 0 for a flat or grouped view. A row
that is its own parent is a root but no cycle.
Sourcepub fn cell_hosts(&self) -> usize
pub fn cell_hosts(&self) -> usize
Cell hosts planned in the last frame: real elements in cells, such
as the elements of Element and Control columns and an open
editor.
Sourcepub fn last_hosts_prepaint(&self) -> Duration
pub fn last_hosts_prepaint(&self) -> Duration
CPU time of the layout and prepaint of the last frame’s row elements, when it had cell hosts; zero otherwise.
Sourcepub fn last_drop_target(&self) -> Duration
pub fn last_drop_target(&self) -> Duration
Main-thread time the last move of a drag over the rows took to place it: the hit test and the drop policy (S38).
Trait Implementations§
impl Copy for GridStats
Auto Trait Implementations§
impl Freeze for GridStats
impl RefUnwindSafe for GridStats
impl Send for GridStats
impl Sync for GridStats
impl Unpin for GridStats
impl UnsafeUnpin for GridStats
impl UnwindSafe for GridStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().