Enum profiler::profiler::Profiler [] [src]

pub enum Profiler {
    CacheGrind {
        ir: f64,
        i1mr: f64,
        ilmr: f64,
        dr: f64,
        d1mr: f64,
        dlmr: f64,
        dw: f64,
        d1mw: f64,
        dlmw: f64,
        data: Mat<f64>,
        functs: Vec<String>,
    },
    CallGrind {
        total_instructions: f64,
        instructions: Vec<f64>,
        functs: Vec<String>,
    },
}

Variants

CacheGrind

Fields

ir: f64
i1mr: f64
ilmr: f64
dr: f64
d1mr: f64
dlmr: f64
dw: f64
d1mw: f64
dlmw: f64
data: Mat<f64>
functs: Vec<String>
CallGrind

Fields

total_instructions: f64
instructions: Vec<f64>
functs: Vec<String>

Methods

impl Profiler
[src]

Trait Implementations

impl Display for Profiler
[src]

Pretty-print the profiler outputs into user-friendly formats.

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl CallGrindParser for Profiler
[src]

fn callgrind_cli(&self, binary: &str) -> Result<StringProfError>

fn callgrind_parse<'b>(&'b self, output: &'b str, num: usize) -> Result<ProfilerProfError>

impl CacheGrindParser for Profiler
[src]

fn cachegrind_cli(&self, binary: &str) -> Result<StringProfError>

Get profiler output from stdout.

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