[TRACY] Try to add mem alloc
This commit is contained in:
parent
694d9486db
commit
c33c6d43e6
1 changed files with 6 additions and 0 deletions
|
@ -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 std::{ops::Deref, sync::Arc};
|
||||||
|
|
||||||
use cgmath::prelude::*;
|
use cgmath::prelude::*;
|
||||||
|
@ -136,6 +139,9 @@ pub async fn run() {
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
tracy_client::Client::start();
|
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 event_loop = EventLoop::new();
|
||||||
let title = env!("CARGO_PKG_NAME");
|
let title = env!("CARGO_PKG_NAME");
|
||||||
let window = winit::window::WindowBuilder::new()
|
let window = winit::window::WindowBuilder::new()
|
||||||
|
|
Loading…
Reference in a new issue