Trait mz_prof::StackProfileExt

source ·
pub trait StackProfileExt {
    // Required methods
    fn to_mzfg(&self, symbolize: bool, header_extra: &[(&str, &str)]) -> String;
    fn to_pprof(
        &self,
        sample_type: (&str, &str),
        period_type: (&str, &str),
        anno_key: Option<String>,
    ) -> Vec<u8> ;
}

Required Methods§

source

fn to_mzfg(&self, symbolize: bool, header_extra: &[(&str, &str)]) -> String

Writes out the .mzfg format, which is fully described in flamegraph.js.

source

fn to_pprof( &self, sample_type: (&str, &str), period_type: (&str, &str), anno_key: Option<String>, ) -> Vec<u8>

Converts the profile into the pprof format.

pprof encodes profiles as gzipped protobuf messages of the Profile message type (see pprof/profile.proto).

Implementations on Foreign Types§

source§

impl StackProfileExt for StackProfile

source§

fn to_mzfg(&self, symbolize: bool, header_extra: &[(&str, &str)]) -> String

source§

fn to_pprof( &self, sample_type: (&str, &str), period_type: (&str, &str), anno_key: Option<String>, ) -> Vec<u8>

Implementors§