Skip to main content

TimelineEntry

Struct TimelineEntry 

Source
pub struct TimelineEntry {
Show 13 fields pub timestamp_ms: u64, pub kind: TimelineKind, pub track: &'static str, pub duration_ns: u64, pub head_ns: u64, pub rebuild_ns: u64, pub after_tick_ns: u64, pub overlay_ns: u64, pub paint_ns: u64, pub layout_ns: u64, pub rebuilt: bool, pub scoped_rebuilt: usize, pub detail: String,
}
Expand description

统一时间线的一条记录。

Fields§

§timestamp_ms: u64§kind: TimelineKind§track: &'static str

扩展轨道的名字(kind == Custom 时由调用方给,如 "VideoDecode")。 框架级两条轨道此字段为空串,kind_label 走固定名。

§duration_ns: u64§head_ns: u64

CPU 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

Source

pub fn kind_label(&self) -> &'static str

Trait Implementations§

Source§

impl Clone for TimelineEntry

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TimelineEntry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.