mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Set tracy thread name
This commit is contained in:
parent
dbf14b97e6
commit
a1b511db45
@ -48,8 +48,14 @@ impl Map {
|
|||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
pub fn run_sync_with_max_frames(self, max_frames: Option<u64>) {
|
pub fn run_sync_with_max_frames(self, max_frames: Option<u64>) {
|
||||||
tokio::runtime::Builder::new_multi_thread()
|
tokio::runtime::Builder::new_multi_thread()
|
||||||
|
.worker_threads(2)
|
||||||
|
.threa
|
||||||
.enable_io()
|
.enable_io()
|
||||||
.enable_time()
|
.enable_time()
|
||||||
|
.on_thread_start(|| {
|
||||||
|
#[cfg(feature = "enable-tracing")]
|
||||||
|
tracy_client::set_thread_name("tokio-runtime-worker");
|
||||||
|
})
|
||||||
.build()
|
.build()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.block_on(async {
|
.block_on(async {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user