Skip to main content

TraceEventSink

Trait TraceEventSink 

Source
pub trait TraceEventSink: Send + Sync {
    // Required methods
    fn emit_association(
        &self,
        pid: pid_t,
        tid: tid_t,
        identity: ZirconIdentity,
        source: &'static str,
    );
    fn on_dump_complete(&self);
}
Expand description

Sink for emitting task attribution events during tracing.

Required Methods§

Source

fn emit_association( &self, pid: pid_t, tid: tid_t, identity: ZirconIdentity, source: &'static str, )

Emits an association event between Linux pid/tid and Zircon identity. source is “dump” for existing tasks snapshot, or “new_task” for dynamic spawns.

Source

fn on_dump_complete(&self)

Called after an initial dump of running tasks completes.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§