pub trait LeakDetectionAlgorithm: Debug {
// Required methods
fn detect_leaks(&self, snapshots: &[MemorySnapshot]) -> Vec<MemoryLeak>;
fn name(&self) -> &str;
fn sensitivity(&self) -> f64;
}Expand description
Leak detection algorithm trait
Required Methods§
Sourcefn detect_leaks(&self, snapshots: &[MemorySnapshot]) -> Vec<MemoryLeak>
fn detect_leaks(&self, snapshots: &[MemorySnapshot]) -> Vec<MemoryLeak>
Analyze memory usage for leaks
Sourcefn sensitivity(&self) -> f64
fn sensitivity(&self) -> f64
Get algorithm sensitivity