pub struct TimelineEntry {}Expand description
统一时间线的一条记录。
Fields§
§timestamp_ms: u64§kind: TimelineKind§track: &'static str扩展轨道的名字(kind == Custom 时由调用方给,如 "VideoDecode")。
框架级两条轨道此字段为空串,kind_label 走固定名。
duration_ns: u64§head_ns: u64CPU FrameStats 六阶段拆分(仅 CpuFrame 有意义;其他为 0)
rebuild_ns: u64§after_tick_ns: u64§overlay_ns: u64§paint_ns: u64§layout_ns: u64§rebuilt: bool本帧是否有全树 rebuild(CpuFrame)
scoped_rebuilt: usize本帧 scoped dirty rebuild 的 element 数(CpuFrame)
detail: String业务侧可选 detail(如 video session id / overlay name)
Implementations§
Source§impl TimelineEntry
impl TimelineEntry
pub fn kind_label(&self) -> &'static str
Trait Implementations§
Source§impl Clone for TimelineEntry
impl Clone for TimelineEntry
Auto Trait Implementations§
impl Forget for TimelineEntry
impl Freeze for TimelineEntry
impl Move for TimelineEntry
impl RefUnwindSafe for TimelineEntry
impl Send for TimelineEntry
impl Sync for TimelineEntrywhere
RawVecInner: Sync,
impl Unpin for TimelineEntry
impl UnsafeUnpin for TimelineEntry
impl UnwindSafe for TimelineEntry
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