From a1b511db4525e6ac104047b73e41b19e4a6a8526 Mon Sep 17 00:00:00 2001 From: Maximilian Ammann Date: Mon, 4 Apr 2022 12:27:57 +0200 Subject: [PATCH] Set tracy thread name --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 30a725cf..883b6ef8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -48,8 +48,14 @@ impl Map { #[cfg(not(target_arch = "wasm32"))] pub fn run_sync_with_max_frames(self, max_frames: Option) { tokio::runtime::Builder::new_multi_thread() + .worker_threads(2) + .threa .enable_io() .enable_time() + .on_thread_start(|| { + #[cfg(feature = "enable-tracing")] + tracy_client::set_thread_name("tokio-runtime-worker"); + }) .build() .unwrap() .block_on(async {