pub(crate) struct Report {Show 18 fields
pub scenario: String,
pub git_sha: String,
pub rustc: String,
pub profile: String,
pub started_unix: u64,
pub flags: BTreeMap<String, Value>,
pub sent: u64,
pub received: u64,
pub dropped: u64,
pub errors: u64,
pub unmatched: u64,
pub duration_secs: f64,
pub sent_per_sec: f64,
pub received_per_sec: f64,
pub bytes_per_sec: f64,
pub latency_ns: Option<Latency>,
pub ack_latency_ns: Option<Latency>,
pub engine: Option<EngineSnapshot>,
}Expand description
One finished run.
Fields§
§scenario: String§git_sha: String§rustc: String§profile: String§started_unix: u64§flags: BTreeMap<String, Value>§sent: u64§received: u64§dropped: u64§errors: u64§unmatched: u64§duration_secs: f64§sent_per_sec: f64§received_per_sec: f64§bytes_per_sec: f64§latency_ns: Option<Latency>§ack_latency_ns: Option<Latency>§engine: Option<EngineSnapshot>Implementations§
Source§impl Report
impl Report
Sourcepub(crate) fn finish(
self,
samples: Vec<u64>,
ack_samples: Option<Vec<u64>>,
payload_bytes: u64,
) -> Self
pub(crate) fn finish( self, samples: Vec<u64>, ack_samples: Option<Vec<u64>>, payload_bytes: u64, ) -> Self
Fills metadata and throughput from the raw counters.
Sourcepub(crate) fn emit(&self, json_path: Option<&Path>) -> Result<(), String>
pub(crate) fn emit(&self, json_path: Option<&Path>) -> Result<(), String>
Writes the human summary to stdout and optionally the JSON file.
§Errors
Returns a message if --json cannot be written.
fn summary(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnwindSafe for Report
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