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§
Sourcefn apply(&self, profiler: &Profiler, elapsed: Duration)
fn apply(&self, profiler: &Profiler, elapsed: Duration)
Apply the pattern for the given elapsed time.
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Get a description.