From dc7cf7a428d645941d62ee461f11223905fe4ff3 Mon Sep 17 00:00:00 2001 From: Afnan Enayet Date: Wed, 1 Nov 2023 22:37:10 -0400 Subject: [PATCH] feat: Add profiling profile Adds a profile to use for performance profiling. --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a52de91f..74469710 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -113,6 +113,13 @@ dynamic-grammar-libs = [] # Compile the static tree-sitter grammars from the submodules in this repo. static-grammar-libs = [] +[profile.profiling] +inherits = "release" +# Debug symbols are required for profiling +strip = false +# Want to keep debug info +debug = true + [profile.production] inherits = "release" lto = true