pub struct Profile {
pub phase_time: [Duration; 11],
pub phase_calls: [u64; 11],
pub site_count: [u64; 6],
pub site_bytes: [u64; 6],
}Available on crate feature
profiling only.Expand description
Everything one render’s walk accumulated.
A record of facts: the counters are public and the reporting lives in whoever reads them.
Fields§
§phase_time: [Duration; 11]Time in each phase, indexed as Phase orders them.
phase_calls: [u64; 11]How many times each phase was entered.
site_count: [u64; 6]How many allocations each site made, indexed as Site orders them.
site_bytes: [u64; 6]How many bytes those allocations asked for, where the size is knowable
from the value itself (a Vec’s capacity times its element size, a
BezPath’s element count times a PathEl).
Trait Implementations§
impl Copy for Profile
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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