Skip to main content

Record

Enum Record 

Source
pub enum Record {
Show 18 variants Session(Session), Name { id: NameId, text: String, }, Track { id: Track, name: NameId, }, FrameBegin { t: u64, frame: u64, causes: Vec<NameId>, }, Holder { frame: u64, what: NameId, name: NameId, node: u64, }, FrameEnd { t: u64, frame: u64, unchanged: Option<bool>, nodes: u32, }, Present { t: u64, frame: u64, render: u64, wait: u64, }, Span(Span), Input { t: u64, kind: NameId, os_t: Option<u64>, count: u32, until: u64, }, Event { t: u64, kind: NameId, node: u64, }, Wake { t: u64, name: NameId, }, Request { t: u64, why: NameId, at: NameId, }, Loop { t: u64, event: LoopEvent, }, Counter { t: u64, frame: u64, name: NameId, value: i64, }, Gauge { t: u64, name: NameId, value: f64, }, Mark { t: u64, track: Track, name: NameId, }, Note { t: u64, text: String, }, Placement { t: u64, node: u64, component: NameId, answer: NameId, why: NameId, },
}
Expand description

One record.

Variants§

§

Session(Session)

§

Name

Fields

§text: String
§

Track

Fields

§name: NameId
§

FrameBegin

A frame begun, with why it runs: the cause kinds and the named ones (wake: parser, request: caret blink).

Fields

§frame: u64
§causes: Vec<NameId>
§

Holder

Who held the frame the last one left owed: what for and its name.

Fields

§frame: u64
§what: NameId
§name: NameId
§node: u64
§

FrameEnd

A frame finished: whether it drew what the one before drew, and how many nodes it held.

Fields

§frame: u64
§unchanged: Option<bool>
§nodes: u32
§

Present

A frame drawn: the driver’s render and vsync’s wait, µs.

Fields

§frame: u64
§render: u64
§wait: u64
§

Span(Span)

§

Input

Input arriving: its kind and, for a run of one kind (pointer moves), how many and until when — never before t, which is what a single input’s until is.

Fields

§kind: NameId
§os_t: Option<u64>
§count: u32
§until: u64
§

Event

An event handed to the app: its kind and its node.

Fields

§kind: NameId
§node: u64
§

Wake

Fields

§name: NameId
§

Request

A frame asked for: why, and the source line that asked.

Fields

§

Loop

Fields

§

Counter

A frame’s counter: its total over the frame.

Fields

§frame: u64
§name: NameId
§value: i64
§

Gauge

A reading set.

Fields

§name: NameId
§value: f64
§

Mark

An instant.

Fields

§track: Track
§name: NameId
§

Note

A line the app wrote (perf_note): what the numbers beside it cannot say — a pane’s “editor moved, reads fs.stat”.

Fields

§text: String
§

Placement

A component placed (ADR 0067): its kind, the node it is at, how it was filled — replayed, or drawn fresh and why in a word (not-kept, params, reads, not-replayable, heard) — and, for reads and not-replayable, the fact that moved or what made it unreplayable: hover 00000000000000ab, the clock. The fact’s kind and node, never what it read.

Fields

§node: u64
§component: NameId
§answer: NameId

Implementations§

Source§

impl Record

Source

pub fn t(&self) -> Option<u64>

The time it is placed at, for one that has one.

Trait Implementations§

Source§

impl Clone for Record

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 Record

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Record

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Record

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.