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 pub mod trace_marker; 9 use trace_marker as platform; 10 11 pub use trace_marker::*; 12 } else { 13 /// A crate that provides noop tracing. 14 pub mod noop; 15 use noop as platform; 16 } 17 } 18 19 pub use platform::init; 20