Add tracy profiling under a feature

This commit is contained in:
Ivan Molodetskikh
2023-08-10 14:12:20 +04:00
parent 18b9d0dfcc
commit 0ed5bad452
8 changed files with 87 additions and 0 deletions
+6
View File
@@ -10,9 +10,11 @@ edition = "2021"
anyhow = { version = "1.0.72", features = ["backtrace"] }
bitflags = "2.3.3"
clap = { version = "4.3.21", features = ["derive"] }
profiling = "1.0.9"
smithay-drm-extras = { version = "0.1.0", path = "../smithay/smithay-drm-extras" }
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
tracy-client = { version = "0.15.2", default-features = false }
[dependencies.smithay]
git = "https://github.com/Smithay/smithay"
@@ -31,3 +33,7 @@ features = [
"use_system_lib",
"wayland_frontend",
]
[features]
profile-with-tracy = ["profiling/profile-with-tracy", "tracy-client/default"]