pub struct TraceHeader {
pub format_version: u32,
pub schema_hash: u64,
pub tool_version: String,
pub capture_options: CaptureOptions,
pub start_wall_ns: u64,
pub start_mono_ns: u64,
pub process_id: u64,
pub workload: String,
pub host: HostInfo,
pub notes: Vec<String>,
}Expand description
Trace session header.
Fields§
§format_version: u32Format version (FORMAT_VERSION).
schema_hash: u64Schema hash (SCHEMA_HASH).
tool_version: StringTool version that produced the trace.
capture_options: CaptureOptionsCapture options.
start_wall_ns: u64Wall-clock ns of session start (Unix epoch).
start_mono_ns: u64Monotonic ns of session start.
process_id: u64Process id of the captured process.
workload: StringWorkload label, e.g. "demo" or "proton:appid=271590".
host: HostInfoHost information.
notes: Vec<String>Free-form capture notes (command line, seed, …).
Trait Implementations§
Source§impl Clone for TraceHeader
impl Clone for TraceHeader
Source§fn clone(&self) -> TraceHeader
fn clone(&self) -> TraceHeader
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 moreSource§impl Debug for TraceHeader
impl Debug for TraceHeader
Source§impl<'de> Deserialize<'de> for TraceHeader
impl<'de> Deserialize<'de> for TraceHeader
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
Source§impl PartialEq for TraceHeader
impl PartialEq for TraceHeader
Source§impl Serialize for TraceHeader
impl Serialize for TraceHeader
impl StructuralPartialEq for TraceHeader
Auto Trait Implementations§
impl Freeze for TraceHeader
impl RefUnwindSafe for TraceHeader
impl Send for TraceHeader
impl Sync for TraceHeader
impl Unpin for TraceHeader
impl UnsafeUnpin for TraceHeader
impl UnwindSafe for TraceHeader
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