feat: instrumentation profile

This commit is contained in:
Roman Krasiuk
2024-09-13 14:39:13 +02:00
parent df701a0bf8
commit c30bb1723c
2 changed files with 9 additions and 0 deletions

View File

@@ -1,6 +1,10 @@
[alias]
docs = "doc --workspace --all-features --no-deps"
[unstable]
# `instrumentation` profile requires unstable `profile-rustflags` feature
profile-rustflags = true
[target.x86_64-pc-windows-msvc]
rustflags = [
# Increases the stack size to 10MB, which is

View File

@@ -274,6 +274,11 @@ inherits = "release"
debug = 2
strip = false
# `instrumentation` profile enables unstable tokio features
[profile.instrumentation]
inherits = "profiling"
rustflags = ["--cfg", "tokio_unstable"]
# Make sure debug symbols are in the bench profile
[profile.bench]
inherits = "profiling"