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(); }