Struct pprof::ReportBuilder
source · pub struct ReportBuilder<'a> { /* private fields */ }
Expand description
A builder of Report
and UnresolvedReport
. It builds report from a running Profiler
.
Implementations§
source§impl<'a> ReportBuilder<'a>
impl<'a> ReportBuilder<'a>
sourcepub fn frames_post_processor<T>(&mut self, frames_post_processor: T) -> &mut Selfwhere
T: Fn(&mut Frames) + 'static,
pub fn frames_post_processor<T>(&mut self, frames_post_processor: T) -> &mut Selfwhere T: Fn(&mut Frames) + 'static,
Set frames_post_processor
of a ReportBuilder
. Before finally building a report, frames_post_processor
will be applied to every Frames.
sourcepub fn build_unresolved(&self) -> Result<UnresolvedReport>
pub fn build_unresolved(&self) -> Result<UnresolvedReport>
Build an UnresolvedReport