Skip to main content

LeakDetectionAlgorithm

Trait LeakDetectionAlgorithm 

Source
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§

Source

fn detect_leaks(&self, snapshots: &[MemorySnapshot]) -> Vec<MemoryLeak>

Analyze memory usage for leaks

Source

fn name(&self) -> &str

Get algorithm name

Source

fn sensitivity(&self) -> f64

Get algorithm sensitivity

Implementors§