Fix tracy by using re-export (#213)

This commit is contained in:
Max Ammann 2022-11-12 21:01:17 +01:00 committed by GitHub
parent 4e761fd7a2
commit 193b06a49d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,7 @@ authors.workspace = true
default = []
web-webgl = ["wgpu/webgl"]
# Enable tracing using tracy on desktop/mobile and the chrome profiler on web
trace = ["tracing-subscriber", "tracing-tracy", "tracy-client"]
trace = ["tracing-subscriber", "tracing-tracy"]
thread-safe-futures = []
embed-static-tiles = ["maplibre-build-tools/sqlite"]
headless = ["png"]
@ -29,7 +29,6 @@ reqwest = { version = "0.11.11", default-features = false, features = ["rustls-t
reqwest-middleware-cache = "0.1.1" # FIXME: Untrusted dependency
reqwest-middleware = "0.1.6" # FIXME: Untrusted dependency
tracing-tracy = { version = "0.10", optional = true }
tracy-client = { version = "0.14", optional = true }
[target.'cfg(target_os = "android")'.dependencies]
# Use rusttls on android because cross compiling is difficult

View File

@ -13,7 +13,7 @@ pub fn run_multithreaded<F: Future>(future: F) -> F::Output {
.enable_time()
.on_thread_start(|| {
#[cfg(feature = "trace")]
tracy_client::set_thread_name!("tokio-runtime-worker");
tracing_tracy::client::set_thread_name!("tokio-runtime-worker");
})
.build()
.unwrap()