Skip to main content

CustomMemoryPattern

Trait CustomMemoryPattern 

Source
pub trait CustomMemoryPattern:
    Send
    + Sync
    + Debug {
    // Required methods
    fn apply(&self, profiler: &Profiler, elapsed: Duration);
    fn description(&self) -> &str;
}
Expand description

Trait for custom memory patterns.

Required Methods§

Source

fn apply(&self, profiler: &Profiler, elapsed: Duration)

Apply the pattern for the given elapsed time.

Source

fn description(&self) -> &str

Get a description.

Implementors§