tracing_perfetto_sdk_sys::ffi

Function new_tracing_session

Source
pub fn new_tracing_session(
    trace_config_bytes: &[u8],
    output_fd: i32,
) -> Result<UniquePtr<PerfettoTracingSession>, Exception>
Expand description

Create a new tracing session using the provided Protobuf-encoded TraceConfig.

If output_fd is non-negative, we will write traces directly to the provided file descriptor, in which case poll_traces will never return any data.