storage_trace/
fuchsia.rs

1// Copyright 2024 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5use fuchsia_trace::{Arg, TraceFutureArgs};
6use std::ffi::CStr;
7
8pub use fuchsia_trace::{
9    duration, flow_begin, flow_end, flow_step, instant, ArgValue, Id, Scope, TraceCategoryContext,
10    TraceFutureExt,
11};
12
13#[inline]
14pub fn trace_future_args<'a>(
15    context: Option<TraceCategoryContext>,
16    category: &'static CStr,
17    name: &'static CStr,
18    args: Vec<Arg<'a>>,
19) -> TraceFutureArgs<'a> {
20    TraceFutureArgs { category, name, context, args, flow_id: None, _use_trace_future_args: () }
21}