all: use tracy for tracing
This commit is contained in:
parent
50186e764e
commit
ccad3cf0fb
56 changed files with 647 additions and 171 deletions
51
src/tracy/tracy_noop.rs
Normal file
51
src/tracy/tracy_noop.rs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
#![allow(unused_macros)]
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct ZoneName;
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct FrameName;
|
||||
|
||||
impl FrameName {
|
||||
pub fn get(_name: &str) -> Self {
|
||||
Self
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! create_zone_name {
|
||||
($($tt:tt)*) => {
|
||||
crate::tracy::ZoneName
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! dynamic_raii_zone {
|
||||
($name:expr) => {};
|
||||
}
|
||||
|
||||
macro_rules! dynamic_zone {
|
||||
($name:expr) => {};
|
||||
}
|
||||
|
||||
macro_rules! raii_zone {
|
||||
($($tt:tt)*) => {
|
||||
()
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! zone {
|
||||
($($tt:tt)*) => {};
|
||||
}
|
||||
|
||||
macro_rules! raii_frame {
|
||||
($name:expr) => {
|
||||
()
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! frame {
|
||||
($name:expr) => {};
|
||||
}
|
||||
|
||||
pub fn enable_profiler() {
|
||||
// nothing
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue