From 1b0624a17448c0e272d68c1b1dad50bbd4fb69f7 Mon Sep 17 00:00:00 2001 From: Ryan Walters Date: Tue, 2 Sep 2025 14:52:11 -0500 Subject: [PATCH] chore: add profiling profile for flamegraph --- .gitignore | 3 +++ Cargo.toml | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index c8fbabc..eeff34f 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,6 @@ assets/site/build.css # Coverage reports lcov.info coverage.html + +# Profiling output +flamegraph.svg diff --git a/Cargo.toml b/Cargo.toml index 156ae68..73fee26 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,6 +50,15 @@ serde_json = "1.0.143" [package.metadata.cargo-machete] ignored = ["phf"] +# Release profile for profiling (essentially the default 'release' profile with debug enabled) +[profile.profile] +inherits = "release" +debug = true +# Undo the customizations for our release profile +opt-level = 3 +lto = false +panic = 'unwind' + # LTO optimizations, no unwinding on panic, optimize for size [profile.release] lto = true