Struct hdbconnect::ConnectionStatistics
source · pub struct ConnectionStatistics { /* private fields */ }
Expand description
Provides some statistics about the use of a concrete connection.
A snapshot of the statistics can be obtained from Connection::statistics
.
It is possible to reset the statistics using Connection::reset_statistics
.
Implementations§
source§impl ConnectionStatistics
impl ConnectionStatistics
sourcepub fn call_count(&self) -> u32
pub fn call_count(&self) -> u32
Returns the number of roundtrips to the database that were done through this connection since the last reset.
sourcepub fn accumulated_wait_time(&self) -> Duration
pub fn accumulated_wait_time(&self) -> Duration
Returns the total wait time, from start of serializing a request until receiving a reply, for all roundtrips to the database that were done through this connection since the last reset.
sourcepub fn compressed_requests_count(&self) -> u32
pub fn compressed_requests_count(&self) -> u32
Returns the number of outgoing requests that were compressed.
sourcepub fn compressed_requests_compressed_size(&self) -> u64
pub fn compressed_requests_compressed_size(&self) -> u64
Returns the accumulated size of compressed requests (without message and segment header).
sourcepub fn compressed_requests_uncompressed_size(&self) -> u64
pub fn compressed_requests_uncompressed_size(&self) -> u64
Returns the accumulated uncompressed size (without message and segment header) of compressed requests.
sourcepub fn compressed_replies_count(&self) -> u32
pub fn compressed_replies_count(&self) -> u32
Returns the number of incoming replies that were compressed.
sourcepub fn compressed_replies_compressed_size(&self) -> u64
pub fn compressed_replies_compressed_size(&self) -> u64
Returns the accumulated size of compressed replies (without message and segment header).
sourcepub fn compressed_replies_uncompressed_size(&self) -> u64
pub fn compressed_replies_uncompressed_size(&self) -> u64
Returns the accumulated uncompressed size (without message and segment header) of compressed replies.
Trait Implementations§
source§impl Clone for ConnectionStatistics
impl Clone for ConnectionStatistics
source§fn clone(&self) -> ConnectionStatistics
fn clone(&self) -> ConnectionStatistics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more