chore: add profiling profile for flamegraph

This commit is contained in:
Ryan Walters
2025-09-02 14:52:11 -05:00
parent 7dfab26898
commit 1b0624a174
2 changed files with 12 additions and 0 deletions

3
.gitignore vendored
View File

@@ -15,3 +15,6 @@ assets/site/build.css
# Coverage reports
lcov.info
coverage.html
# Profiling output
flamegraph.svg

View File

@@ -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