From 88f16938ab329114188e35cb99380ae3d9d8f6db Mon Sep 17 00:00:00 2001 From: Hubert Bugaj Date: Fri, 15 May 2026 16:14:38 +0200 Subject: [PATCH] chore: add release-symbols profile --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index b0a5562bdce3..2cf97a9c4290 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -332,6 +332,13 @@ lto = "thin" inherits = "release" lto = "fat" +# Release-equivalent build with debug symbols retained, for use with +# samply/perf/flamegraph. Run with: cargo build --profile release-symbols --bin forest +[profile.release-symbols] +inherits = "release" +strip = false +debug = "line-tables-only" + # These should be refactored (probably removed) in #2984 [features] default = ["jemalloc", "tracing-loki", "sqlite"]