1
0
Fork 0

[TRACY] Try to add mem alloc

This commit is contained in:
Florian RICHER 2022-07-26 14:02:53 +02:00
parent 694d9486db
commit c33c6d43e6

View file

@ -1,3 +1,6 @@
#[global_allocator]
static GLOBAL: tracy_client::ProfiledAllocator<std::alloc::System> = tracy_client::ProfiledAllocator::new(std::alloc::System, 100);
use std::{ops::Deref, sync::Arc};
use cgmath::prelude::*;
@ -136,6 +139,9 @@ pub async fn run() {
#[cfg(not(target_arch = "wasm32"))]
tracy_client::Client::start();
#[cfg(not(target_arch = "wasm32"))]
tracy_client::Client::running().unwrap().set_thread_name("MAIN THREAD");
let event_loop = EventLoop::new();
let title = env!("CARGO_PKG_NAME");
let window = winit::window::WindowBuilder::new()