mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 19:15:45 -06:00
chore: add profiling profile for flamegraph
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -15,3 +15,6 @@ assets/site/build.css
|
|||||||
# Coverage reports
|
# Coverage reports
|
||||||
lcov.info
|
lcov.info
|
||||||
coverage.html
|
coverage.html
|
||||||
|
|
||||||
|
# Profiling output
|
||||||
|
flamegraph.svg
|
||||||
|
|||||||
@@ -50,6 +50,15 @@ serde_json = "1.0.143"
|
|||||||
[package.metadata.cargo-machete]
|
[package.metadata.cargo-machete]
|
||||||
ignored = ["phf"]
|
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
|
# LTO optimizations, no unwinding on panic, optimize for size
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
|
|||||||
Reference in New Issue
Block a user