CacheGrindParser

Trait CacheGrindParser 

Source
pub trait CacheGrindParser {
    // Required methods
    fn cachegrind_cli(
        &self,
        binary: &str,
        binargs: &[&OsStr],
    ) -> Result<String, ProfError>;
    fn cachegrind_parse<'b>(
        &'b self,
        output: &'b str,
        num: usize,
        sort_metric: Metric,
    ) -> Result<Profiler, ProfError>;
}
Expand description

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§

Source

fn cachegrind_cli( &self, binary: &str, binargs: &[&OsStr], ) -> Result<String, ProfError>

Source

fn cachegrind_parse<'b>( &'b self, output: &'b str, num: usize, sort_metric: Metric, ) -> Result<Profiler, ProfError>

Implementors§