xref: /aosp_15_r20/external/crosvm/cros_tracing/src/lib.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1 // Copyright 2022 The ChromiumOS Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 cfg_if::cfg_if! {
6     if #[cfg(feature = "trace_marker")] {
7         /// A wrapper around trace_marker tracing features
8         mod trace_marker;
9         pub use trace_marker::*;
10     } else if #[cfg(feature = "perfetto")] {
11         mod perfetto;
12         pub use perfetto::*;
13     }
14     else {
15         /// A crate that provides noop tracing.
16         mod noop;
17         pub use noop::*;
18     }
19 }
20