From 3e8b8d035a110a8f55100029638246a179586597 Mon Sep 17 00:00:00 2001 From: Micah Elizabeth Scott Date: Wed, 5 Jul 2023 14:03:29 -0700 Subject: [PATCH] Include debug symbols in "bench" profile Including full debug symbols makes the benchmark builds useful for profiling too. --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a8ae68c8a..6a347820f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -86,3 +86,9 @@ lto = "thin" codegen-units = 16 opt-level = 2 incremental = true + +[profile.bench] +# For "cargo bench", which is only used by some crates. +# Inherits release build settings, but adds full debug symbols. +debug = 2 +strip = "none"