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, ArgValue, Id, TraceCategoryContext, TraceFutureExt,
10};
11
12#[inline]
13pub fn trace_future_args<'a>(
14    context: Option<TraceCategoryContext>,
15    category: &'static CStr,
16    name: &'static CStr,
17    args: Vec<Arg<'a>>,
18) -> TraceFutureArgs<'a> {
19    TraceFutureArgs { category, name, context, args, flow_id: None, _use_trace_future_args: () }
20}