Struct queuecheck::Latency [−][src]
A measurement of the latency of a queue.
Fields
produce: Data
The enqueue operation latencies in nanoseconds.
consume: Data
The dequeue operation latencies in nanoseconds.
Methods
impl Latency
[src]
impl Latency
pub fn new(produce: Vec<f64>, consume: Vec<f64>) -> Self
[src]
pub fn new(produce: Vec<f64>, consume: Vec<f64>) -> Self
Constructs a new Latency
.
pub fn report(&self, name: &str, ranks: &[f64])
[src]
pub fn report(&self, name: &str, ranks: &[f64])
Prints a latency report to the console for the percentiles with the supplied ranks.
Trait Implementations
impl Clone for Latency
[src]
impl Clone for Latency
fn clone(&self) -> Latency
[src]
fn clone(&self) -> Latency
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Latency
[src]
impl Debug for Latency