From 84881dfb5aafa4b4ec27b61c802955734e7f826a Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Thu, 6 Jul 2023 06:40:12 +0200 Subject: [PATCH] Enable source code view when profiling benchmarks Tested with Apple's Instruments. --- libloadviz/Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libloadviz/Cargo.toml b/libloadviz/Cargo.toml index 43ef0de..6ac4f5f 100644 --- a/libloadviz/Cargo.toml +++ b/libloadviz/Cargo.toml @@ -25,8 +25,9 @@ cbindgen = "0.24.3" criterion = "0.5" # See: https://doc.rust-lang.org/cargo/reference/profiles.html -[profile.release] -debug = 1 # 1 = Line number information only +[profile.bench] +# "true" = everything, so we can see source code in Instruments when profiling +debug = true # Ref: # https://github.com/walles/riff/blob/432c0b08523818e461eded0407a009db2e795996/Cargo.toml#L48-L54