pub struct RunExportRow {
pub bench_name: String,
pub wall_ms_median: u64,
pub wall_ms_min: u64,
pub wall_ms_max: u64,
pub binary_bytes_median: Option<u64>,
pub cpu_ms_median: Option<u64>,
pub ctx_switches_median: Option<u64>,
pub max_rss_kb_median: Option<u64>,
pub page_faults_median: Option<u64>,
pub throughput_median: Option<f64>,
pub sample_count: usize,
pub timestamp: String,
}Expand description
Row structure for RunReceipt export.
§Examples
use perfgate_export::RunExportRow;
let row = RunExportRow {
bench_name: "my-bench".into(),
wall_ms_median: 42,
wall_ms_min: 40,
wall_ms_max: 44,
binary_bytes_median: None,
cpu_ms_median: Some(20),
ctx_switches_median: None,
max_rss_kb_median: None,
page_faults_median: None,
throughput_median: None,
sample_count: 5,
timestamp: "2024-01-01T00:00:00Z".into(),
};
assert_eq!(row.bench_name, "my-bench");
assert_eq!(row.sample_count, 5);Fields§
§bench_name: String§wall_ms_median: u64§wall_ms_min: u64§wall_ms_max: u64§binary_bytes_median: Option<u64>§cpu_ms_median: Option<u64>§ctx_switches_median: Option<u64>§max_rss_kb_median: Option<u64>§page_faults_median: Option<u64>§throughput_median: Option<f64>§sample_count: usize§timestamp: StringTrait Implementations§
Source§impl Clone for RunExportRow
impl Clone for RunExportRow
Source§fn clone(&self) -> RunExportRow
fn clone(&self) -> RunExportRow
Returns a duplicate of the value. Read more
1.0.0 · 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 RunExportRow
impl Debug for RunExportRow
Auto Trait Implementations§
impl Freeze for RunExportRow
impl RefUnwindSafe for RunExportRow
impl Send for RunExportRow
impl Sync for RunExportRow
impl Unpin for RunExportRow
impl UnsafeUnpin for RunExportRow
impl UnwindSafe for RunExportRow
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