Skip to content

Commit

Permalink
feat: Add profiling profile
Browse files Browse the repository at this point in the history
Adds a profile to use for performance profiling.
  • Loading branch information
afnanenayet committed Nov 2, 2023
1 parent 1ffedd3 commit dc7cf7a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc7cf7a

Please sign in to comment.