diff options
Diffstat (limited to 'third_party/rust/tracy-rs/src/lib.rs')
-rw-r--r-- | third_party/rust/tracy-rs/src/lib.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/rust/tracy-rs/src/lib.rs b/third_party/rust/tracy-rs/src/lib.rs new file mode 100644 index 0000000000..e444d10da5 --- /dev/null +++ b/third_party/rust/tracy-rs/src/lib.rs @@ -0,0 +1,15 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#[cfg(feature = "enable_profiler")] +pub mod profiler; + +#[cfg(feature = "enable_profiler")] +pub use profiler::{load, register_thread_with_profiler}; + +#[cfg(not(feature = "enable_profiler"))] +mod disabled; + +#[cfg(not(feature = "enable_profiler"))] +pub use disabled::{load, register_thread_with_profiler}; |