diff --git a/Cargo.toml b/Cargo.toml index 6724c5318889..32eb9943f15b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -235,9 +235,13 @@ codegen-units = 16 # e.g. `cargo build --profile profiling` [profile.profiling] inherits = "release" -debug = 1 +debug = 2 strip = false +# Make sure debug symbols are in the bench profile +[profile.bench] +inherits = "profiling" + [profile.maxperf] inherits = "release" lto = "fat"