tracy: move profiler facade into workspace crate
This commit is contained in:
parent
657e7ce2f7
commit
b7ecf700fa
7 changed files with 49 additions and 9 deletions
58
tracy/src/tracy_noop.rs
Normal file
58
tracy/src/tracy_noop.rs
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
#![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_export]
|
||||
macro_rules! create_zone_name {
|
||||
($($tt:tt)*) => {
|
||||
$crate::ZoneName
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! dynamic_raii_zone {
|
||||
($name:expr) => {};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! dynamic_zone {
|
||||
($name:expr) => {};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! raii_zone {
|
||||
($($tt:tt)*) => {
|
||||
()
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! zone {
|
||||
($($tt:tt)*) => {};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! raii_frame {
|
||||
($name:expr) => {
|
||||
()
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! frame {
|
||||
($name:expr) => {};
|
||||
}
|
||||
|
||||
pub fn enable_profiler() {
|
||||
// nothing
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue