From b3599cea87fe2f47a8a62ad4fc17457beb21fc32 Mon Sep 17 00:00:00 2001 From: Guoteng Rao <3603304+grao1991@users.noreply.github.com> Date: Tue, 20 Dec 2022 17:45:36 -0800 Subject: [PATCH] Fix the example of frames_post_processor. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3dcdbe2c..f45364d5 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ fn frames_post_processor() -> impl Fn(&mut pprof::Frames) { ``` ```rust -if let Ok(report) = guard.frames_post_processor(frames_post_processor()).report().build() { +if let Ok(report) = guard.report().frames_post_processor(frames_post_processor()).build() { let file = File::create("flamegraph.svg").unwrap(); report.flamegraph(file).unwrap(); }