pub struct TraceEvent {Show 15 fields
pub seq: Seq,
pub ts_mono_ns: u64,
pub ts_wall_ns: u64,
pub thread_id: u64,
pub process_id: u64,
pub scope: Scope,
pub kind: EventKind,
pub phase: Phase,
pub span_id: Option<SpanId>,
pub request_id: Option<RequestId>,
pub causes: Vec<u64>,
pub resource: Option<ResourceRef>,
pub payload: Payload,
pub cost_estimate_ns: Option<u64>,
pub confidence: Option<f32>,
}Expand description
A single captured event.
Events are correlated through:
seq— global monotonic order;span_id— pairs aBeginwith itsEnd;request_id— groups events belonging to one logical request (an asset load, a frame, a scene transition);causes— explicit causal links to earlier event seqs (the semantic causal graph, KatraProfiler §6).
Fields§
§seq: SeqGlobal monotonic sequence number.
ts_mono_ns: u64Monotonic timestamp in ns (relative to profiler start).
ts_wall_ns: u64Wall-clock timestamp in ns since the Unix epoch.
thread_id: u64Kernel thread id.
process_id: u64Process id.
scope: ScopeProducing layer.
kind: EventKindEvent kind.
phase: PhasePhase.
span_id: Option<SpanId>Span id (for Begin/End pairing); None for standalone events.
request_id: Option<RequestId>Correlated request id; None if not part of a request.
causes: Vec<u64>Explicit causal links to earlier event seqs.
resource: Option<ResourceRef>Optional resource reference (domain, id).
payload: PayloadStructured payload.
cost_estimate_ns: Option<u64>Estimated/measured cost in ns (for aggregation).
confidence: Option<f32>Prediction confidence 0..1, when the event is a prediction.
Implementations§
Trait Implementations§
Source§impl Clone for TraceEvent
impl Clone for TraceEvent
Source§fn clone(&self) -> TraceEvent
fn clone(&self) -> TraceEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TraceEvent
impl Debug for TraceEvent
Source§impl<'de> Deserialize<'de> for TraceEvent
impl<'de> Deserialize<'de> for TraceEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TraceEvent
impl PartialEq for TraceEvent
Source§impl Serialize for TraceEvent
impl Serialize for TraceEvent
impl StructuralPartialEq for TraceEvent
Auto Trait Implementations§
impl Freeze for TraceEvent
impl RefUnwindSafe for TraceEvent
impl Send for TraceEvent
impl Sync for TraceEvent
impl Unpin for TraceEvent
impl UnsafeUnpin for TraceEvent
impl UnwindSafe for TraceEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more