pub struct TraceEvent {
pub node: u32,
pub phase: TracePhase,
pub tid: u32,
pub start_us: i64,
pub dur_us: i64,
pub input_ts: i64,
}Expand description
一条执行 span。时间均相对图 epoch,单位微秒。
Fields§
§node: u32节点索引(导出时解析成节点名/算子名)。
phase: TracePhase§tid: u32该图内稳定分配的小整数线程号(chrome 的泳道 tid)。
start_us: i64相对图 epoch 的起始微秒。
dur_us: i64本次回调时长(微秒)。
input_ts: i64本次激活的对齐时间戳原值。Open 阶段是 Unstarted、Close 阶段是 Done,都不是流内
值 —— 导出时按名字记(见 to_chrome_trace_json),不然会是贴着 i64::MIN/MAX 的数。
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 moreimpl Copy 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