pub struct ReportComparison {
pub first_timestamp: DateTime<Utc>,
pub second_timestamp: DateTime<Utc>,
pub time_diff_secs: i64,
pub memory_diff_bytes: i64,
pub memory_change_percent: f64,
pub allocation_diff: i64,
pub new_warnings: usize,
pub resolved_warnings: usize,
}Expand description
Comparison between two profile reports.
Fields§
§first_timestamp: DateTime<Utc>First report timestamp.
second_timestamp: DateTime<Utc>Second report timestamp.
time_diff_secs: i64Time difference.
memory_diff_bytes: i64Memory difference in bytes.
memory_change_percent: f64Memory change percentage.
allocation_diff: i64Allocation count difference.
new_warnings: usizeNew leak warnings in second report.
resolved_warnings: usizeResolved warnings (in first but not in second).
Implementations§
Source§impl ReportComparison
impl ReportComparison
Sourcepub fn compare(first: &ProfileReport, second: &ProfileReport) -> Self
pub fn compare(first: &ProfileReport, second: &ProfileReport) -> Self
Compare two profile reports.
Sourcepub fn is_memory_increasing(&self) -> bool
pub fn is_memory_increasing(&self) -> bool
Check if memory usage is increasing.
Trait Implementations§
Source§impl Clone for ReportComparison
impl Clone for ReportComparison
Source§fn clone(&self) -> ReportComparison
fn clone(&self) -> ReportComparison
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 ReportComparison
impl Debug for ReportComparison
Source§impl<'de> Deserialize<'de> for ReportComparison
impl<'de> Deserialize<'de> for ReportComparison
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 ReportComparison
impl RefUnwindSafe for ReportComparison
impl Send for ReportComparison
impl Sync for ReportComparison
impl Unpin for ReportComparison
impl UnsafeUnpin for ReportComparison
impl UnwindSafe for ReportComparison
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