pub struct ProfilerReport {
pub runtime: String,
pub version: String,
pub host: String,
pub measurements: Vec<Measurement>,
}Expand description
Top-level report — a list of measurements plus some environment metadata.
Fields§
§runtime: String§version: String§host: String§measurements: Vec<Measurement>Implementations§
Source§impl ProfilerReport
impl ProfilerReport
pub fn new(runtime: &str) -> Self
pub fn push(&mut self, m: Measurement)
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Render as a human-friendly markdown table.
Trait Implementations§
Source§impl Clone for ProfilerReport
impl Clone for ProfilerReport
Source§fn clone(&self) -> ProfilerReport
fn clone(&self) -> ProfilerReport
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 ProfilerReport
impl Debug for ProfilerReport
Source§impl<'de> Deserialize<'de> for ProfilerReport
impl<'de> Deserialize<'de> for ProfilerReport
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
Auto Trait Implementations§
impl Freeze for ProfilerReport
impl RefUnwindSafe for ProfilerReport
impl Send for ProfilerReport
impl Sync for ProfilerReport
impl Unpin for ProfilerReport
impl UnsafeUnpin for ProfilerReport
impl UnwindSafe for ProfilerReport
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