pub enum TraceRow<'a> {
Start {
ts: u64,
id: u64,
parent: Option<u64>,
name: Cow<'a, str>,
target: Cow<'a, str>,
values: Vec<(Cow<'a, str>, TraceValue<'a>)>,
},
End {
ts: u64,
id: u64,
},
Enter {
ts: u64,
id: u64,
thread_id: u64,
},
Exit {
ts: u64,
id: u64,
thread_id: u64,
},
Event {
ts: u64,
parent: Option<u64>,
values: Vec<(Cow<'a, str>, TraceValue<'a>)>,
},
Record {
id: u64,
values: Vec<(Cow<'a, str>, TraceValue<'a>)>,
},
Allocation {
ts: u64,
thread_id: u64,
allocations: u64,
allocation_count: u64,
deallocations: u64,
deallocation_count: u64,
},
AllocationCounters {
ts: u64,
thread_id: u64,
allocations: u64,
allocation_count: u64,
deallocations: u64,
deallocation_count: u64,
},
}
Expand description
A raw trace line.
Variants§
Start
A new span has been started, but not entered yet.
Fields
§
values: Vec<(Cow<'a, str>, TraceValue<'a>)>
A list of key-value pairs for all attributes of the span.
End
A span has ended. The id might be reused in future.
Enter
A span has been entered. This means it is spending CPU time now.
Fields
Exit
A span has been exited. This means it is not spending CPU time anymore.
Fields
Event
A event has happened for some span.
Fields
§
values: Vec<(Cow<'a, str>, TraceValue<'a>)>
A list of key-value pairs for all attributes of the event.
Record
Additional fields for a span
Fields
§
values: Vec<(Cow<'a, str>, TraceValue<'a>)>
A list of key-value pairs for all attributes of the span.
Allocation
Data about (de)allocations that happened
Fields
AllocationCounters
Data about (de)allocations per thread counters. Actual allocations can be computed from the difference.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for TraceRow<'a>
impl<'de: 'a, 'a> Deserialize<'de> for TraceRow<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for TraceRow<'a>
impl<'a> RefUnwindSafe for TraceRow<'a>
impl<'a> Send for TraceRow<'a>
impl<'a> Sync for TraceRow<'a>
impl<'a> Unpin for TraceRow<'a>
impl<'a> UnwindSafe for TraceRow<'a>
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