pub struct RunProfile {
pub schema: String,
pub identity: RunIdentity,
pub status: RunState,
pub wall_time_ns: u64,
pub input_bytes: u64,
pub input_units: u64,
pub stages: Vec<StageMeasurement>,
pub transitions: Vec<StateTransition>,
pub resource_samples: Vec<ResourceSample>,
pub resources: ResourceUsage,
}Expand description
Complete replayable profile record.
Fields§
§schema: String§identity: RunIdentity§status: RunState§wall_time_ns: u64§input_bytes: u64§input_units: u64§stages: Vec<StageMeasurement>§transitions: Vec<StateTransition>§resource_samples: Vec<ResourceSample>§resources: ResourceUsageImplementations§
Source§impl RunProfile
impl RunProfile
Sourcepub fn to_json_pretty(&self) -> Result<String>
pub fn to_json_pretty(&self) -> Result<String>
Serialize the stable record as pretty JSON.
Sourcepub fn render_text(&self) -> String
pub fn render_text(&self) -> String
Render a compact operator report without secrets or source content.
Trait Implementations§
Source§impl Clone for RunProfile
impl Clone for RunProfile
Source§fn clone(&self) -> RunProfile
fn clone(&self) -> RunProfile
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 RunProfile
impl Debug for RunProfile
Source§impl<'de> Deserialize<'de> for RunProfile
impl<'de> Deserialize<'de> for RunProfile
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 RunProfile
impl PartialEq for RunProfile
Source§impl Serialize for RunProfile
impl Serialize for RunProfile
impl StructuralPartialEq for RunProfile
Auto Trait Implementations§
impl Freeze for RunProfile
impl RefUnwindSafe for RunProfile
impl Send for RunProfile
impl Sync for RunProfile
impl Unpin for RunProfile
impl UnsafeUnpin for RunProfile
impl UnwindSafe for RunProfile
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