tracy_rs/lib.rs
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")]
6pub mod profiler;
7
8#[cfg(feature = "enable_profiler")]
9pub use profiler::{load, register_thread_with_profiler};
10
11#[cfg(not(feature = "enable_profiler"))]
12mod disabled;
13
14#[cfg(not(feature = "enable_profiler"))]
15pub use disabled::{load, register_thread_with_profiler};