Trait profiler::parse::cachegrind::CacheGrindParser
[−]
[src]
pub trait CacheGrindParser { fn cachegrind_cli(&self, binary: &str) -> Result<String, ProfError>; fn cachegrind_parse<'b>(&'b self, output: &'b str, num: usize, sort_metric: Metric) -> Result<Profiler, ProfError>; }
Parser trait. To parse the output of Profilers, we first have to get their output from the command line, and then parse the output into respective structs.
Required Methods
fn cachegrind_cli(&self, binary: &str) -> Result<String, ProfError>
fn cachegrind_parse<'b>(&'b self, output: &'b str, num: usize, sort_metric: Metric) -> Result<Profiler, ProfError>
Implementors
impl CacheGrindParser for Profiler