#[non_exhaustive]pub enum PerfLine {
Frame(FrameRecord),
Snapshot(HeapSnapshot),
Diff(HeapDiff),
}Expand description
One line of a perf trace, as agents read it (ADR-0046 §7): a JSON
object tagged by kind, one a line (serde_json::to_string(&line) and
a newline).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Frame(FrameRecord)
What one frame measured: {"kind":"frame","frame":12,…}.
Snapshot(HeapSnapshot)
What held the heap at a frame:
{"kind":"snapshot","frame":600,"live_bytes":…,"tags":[…],…}.
Diff(HeapDiff)
What changed between two snapshots:
{"kind":"diff","from":1,"to":600,"live_bytes":98304,"tags":[…]}.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PerfLine
impl<'de> Deserialize<'de> for PerfLine
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
impl Eq for PerfLine
Source§impl JsonSchema for PerfLine
impl JsonSchema for PerfLine
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for PerfLine
Auto Trait Implementations§
impl Freeze for PerfLine
impl RefUnwindSafe for PerfLine
impl Send for PerfLine
impl Sync for PerfLine
impl Unpin for PerfLine
impl UnsafeUnpin for PerfLine
impl UnwindSafe for PerfLine
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