pub struct ProfileReport {
pub total_calls: usize,
pub total_alloc_bytes: usize,
pub hot_functions: Vec<(String, u64)>,
pub gc_cycles: usize,
}Expand description
Summary report generated from profiling data.
Fields§
§total_calls: usizeTotal number of function calls recorded.
total_alloc_bytes: usizeTotal bytes allocated.
hot_functions: Vec<(String, u64)>Top 10 hottest functions sorted by total duration (name, ns).
gc_cycles: usizeNumber of GC cycles recorded.
Implementations§
Trait Implementations§
Source§impl Clone for ProfileReport
impl Clone for ProfileReport
Source§fn clone(&self) -> ProfileReport
fn clone(&self) -> ProfileReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProfileReport
impl RefUnwindSafe for ProfileReport
impl Send for ProfileReport
impl Sync for ProfileReport
impl Unpin for ProfileReport
impl UnsafeUnpin for ProfileReport
impl UnwindSafe for ProfileReport
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