From 9b6bc7486fe627bd09b02f6a32a1a08384ab3a63 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sat, 20 Jul 2024 23:29:59 -0700 Subject: [PATCH] Fix invocation of flamegraph command in manual --- manual/src/profiling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual/src/profiling.md b/manual/src/profiling.md index e9ca911ce..0cd1d18f5 100644 --- a/manual/src/profiling.md +++ b/manual/src/profiling.md @@ -5,7 +5,7 @@ If you have a file that's particularly slow, you can use which functions are slow. ``` -$ CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin difft sample_files/slow_1.rs sample_files/slow_2.rs +$ CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin difft -- sample_files/slow_1.rs sample_files/slow_2.rs ``` It's also worth looking at memory usage, as graph traversal bugs can