mirror of
https://github.com/nushell/nushell
synced 2024-11-10 07:04:13 +00:00
Add profiling build profile and symbol strip (#4630)
* Add profiling build profile and symbol strip Stripping the symbols for the release build improves the size of the binary significantly Adds a custom build profile for performance profiling that includes all symbols for analysis. Can be used via ``` cargo build --profile profiling ``` * Retain a minimal backtrace
This commit is contained in:
parent
10364c4f22
commit
eec1730449
1 changed files with 8 additions and 0 deletions
|
@ -97,6 +97,14 @@ dataframe = ["nu-command/dataframe"]
|
|||
|
||||
[profile.release]
|
||||
opt-level = "s" # Optimize for size
|
||||
strip = "debuginfo"
|
||||
|
||||
# build with `cargo build --profile profiling`
|
||||
# to analyze performance with tooling like linux perf
|
||||
[profile.profiling]
|
||||
inherits = "release"
|
||||
strip = false
|
||||
debug = true
|
||||
|
||||
# Build plugins
|
||||
[[bin]]
|
||||
|
|
Loading…
Reference in a new issue