pub struct ProfilingMetrics {
pub execution_time: Duration,
pub memory_usage: usize,
pub instruction_count: usize,
pub function_calls: usize,
pub gc_cycles: usize,
}Fields§
§execution_time: Duration§memory_usage: usize§instruction_count: usize§function_calls: usize§gc_cycles: usizeImplementations§
Source§impl ProfilingMetrics
impl ProfilingMetrics
pub fn generate_report(&self) -> String
Trait Implementations§
Source§impl Clone for ProfilingMetrics
impl Clone for ProfilingMetrics
Source§fn clone(&self) -> ProfilingMetrics
fn clone(&self) -> ProfilingMetrics
Returns a copy 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 moreSource§impl Debug for ProfilingMetrics
impl Debug for ProfilingMetrics
Source§impl<'de> Deserialize<'de> for ProfilingMetrics
impl<'de> Deserialize<'de> for ProfilingMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProfilingMetrics
impl RefUnwindSafe for ProfilingMetrics
impl Send for ProfilingMetrics
impl Sync for ProfilingMetrics
impl Unpin for ProfilingMetrics
impl UnwindSafe for ProfilingMetrics
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