pub trait TraceHandler {
    // Required method
    fn handle(&mut self, trace: &CpuTrace);

    // Provided method
    fn flush(&mut self) -> Result<(), &str> { ... }
}
Expand description

An item which can handle a CPU trace (e.g. logging to a file)

Required Methods§

source

fn handle(&mut self, trace: &CpuTrace)

Handle a trace event.

Provided Methods§

source

fn flush(&mut self) -> Result<(), &str>

Flush any existing resource buffers.

Implementors§