cros_tracing/
lib.rs

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
5cfg_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}