tracing_perfetto_sdk_sys::ffi

Function trace_track_descriptor_process

Source
pub fn trace_track_descriptor_process(
    parent_uuid: u64,
    track_uuid: u64,
    process_name: &str,
    process_pid: u32,
)
Expand description

Create a track descriptor for a process.

Make sure to call this in the hot path instead of delaying the call to some background queue, etc., as the call will collect additional timing data at the time of the actual call.

This call is very cheap and will be a no-op if trace collection is not yet started/enabled.