pub struct Cost {
pub ran: u64,
pub nanos: u64,
pub words: u64,
pub allocations: u64,
}Expand description
What one instruction of a run cost, summed over every time it ran.
Fields§
§ran: u64How often it ran.
nanos: u64Nanoseconds spent running it, the profiler’s own overhead included.
See the module documentation: the overhead is a constant per instruction, so this number is worth reading against the count and not on its own.
words: u64Words its heap handed out while it ran.
allocations: u64Objects its heap handed out while it ran.
Implementations§
Trait Implementations§
impl Copy for Cost
impl Eq for Cost
impl StructuralPartialEq for Cost
Auto Trait Implementations§
impl Freeze for Cost
impl RefUnwindSafe for Cost
impl Send for Cost
impl Sync for Cost
impl Unpin for Cost
impl UnsafeUnpin for Cost
impl UnwindSafe for Cost
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.