write_perfetto_trace

Function write_perfetto_trace 

Source
pub async fn write_perfetto_trace(
    client: &mut Client,
    process_id: &str,
    begin: DateTime<Utc>,
    end: DateTime<Utc>,
    out_filename: &str,
    span_types: SpanTypes,
) -> Result<()>
Expand description

Writes a Perfetto trace to a file with configurable span types.

This function generates traces with thread spans, async spans, or both.

ยงArguments

  • span_types - Types of spans to include: Thread, Async, or Both