pub struct ProfileReport {
pub generated_at: DateTime<Utc>,
pub config: ProfilerConfig,
pub memory: MemoryReport,
pub leak_warnings: Vec<LeakWarning>,
pub is_running: bool,
}Expand description
Comprehensive profiling report.
Fields§
§generated_at: DateTime<Utc>When the report was generated.
config: ProfilerConfigProfiler configuration used.
memory: MemoryReportMemory profiling report.
leak_warnings: Vec<LeakWarning>Detected leak warnings.
is_running: boolWhether profiling is currently running.
Implementations§
Source§impl ProfileReport
impl ProfileReport
Sourcepub fn has_leak_warnings(&self) -> bool
pub fn has_leak_warnings(&self) -> bool
Check if there are any leak warnings.
Sourcepub fn current_memory_bytes(&self) -> u64
pub fn current_memory_bytes(&self) -> u64
Get the current memory usage in bytes.
Sourcepub fn peak_memory_bytes(&self) -> u64
pub fn peak_memory_bytes(&self) -> u64
Get the peak memory usage in bytes.
Sourcepub fn to_summary(&self) -> String
pub fn to_summary(&self) -> String
Export report as a human-readable string.
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 moreSource§impl Debug for ProfileReport
impl Debug for ProfileReport
Source§impl<'de> Deserialize<'de> for ProfileReport
impl<'de> Deserialize<'de> for ProfileReport
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 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