Debian Codegraph @

third_party/rust/tracy-rs/src/disabled.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 // A set of empty stub macros that are defined when the enable_profiler feature
6 // is not enabled. This ensures that we don't include callsite definitions in
7 // the resulting binary.
8
9 #[macro_export]
10 macro_rules! profile_scope {
11 ($string:expr) => {}
12 }
13
14 #[macro_export]
15 macro_rules! tracy_frame_marker {
16 () => {}
17 }
18
19 #[macro_export]
20 macro_rules! tracy_begin_frame {
21 ($name:expr) => {}
22 }
23
24 #[macro_export]
25 macro_rules! tracy_end_frame {
26 ($name:expr) => {}
27 }
28
29 #[macro_export]
30 macro_rules! tracy_plot {
31 ($name:expr, $value:expr) => {}
32 }
33
34 pub unsafe fn load(_: &str) -> bool {
35 println!("Can't load the tracy profiler unless enable_profiler feature is enabled!");
36 false
37 }
38
39 pub fn register_thread_with_profiler(_: String) {
40 }