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§
Sourcefn emit_association(
&self,
pid: pid_t,
tid: tid_t,
identity: ZirconIdentity,
source: &'static str,
)
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.
Sourcefn on_dump_complete(&self)
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".