Debian Codegraph @

third_party/rust/tracy-rs/src/lib.rs

raw
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #[cfg(feature = "enable_profiler")]
6 pub mod profiler;
7
8 #[cfg(feature = "enable_profiler")]
9 pub use profiler::{load, register_thread_with_profiler};
10
11 #[cfg(not(feature = "enable_profiler"))]
12 mod disabled;
13
14 #[cfg(not(feature = "enable_profiler"))]
15 pub use disabled::{load, register_thread_with_profiler};