Struct hdbconnect::ServerUsage
source · pub struct ServerUsage {
pub proc_time: Duration,
pub accum_proc_time: Duration,
pub server_memory_usage: u64,
/* private fields */
}
Expand description
Describes the server-side resource consumption.
This object can be retrieved from Connection
, PreparedStatement
,
ResultSet
, BLob
, CLob
, and NCLob
.
§Example
A ResultSet
may cause additional roundtrips while its Row
s are iterated over,
because not all rows might be transferred and missing rows might need to be fetched.
These fetches change the values in the ServerUsage
both of the ResultSet
and of the Connection
with which the ResultSet
was obtained.
Fields§
§proc_time: Duration
The server-side processing time that was consumed by the last server-call that was triggered from the parent object.
accum_proc_time: Duration
The accumulated server-side processing time that was consumed by all server-calls that were triggered from the parent object.
server_memory_usage: u64
The server-side memory that was consumed by the last server-call that was triggered from the parent object.
Implementations§
source§impl ServerUsage
impl ServerUsage
sourcepub fn accum_proc_time(&self) -> &Duration
pub fn accum_proc_time(&self) -> &Duration
Accumulated server processing time
sourcepub fn server_memory_usage(&self) -> &u64
pub fn server_memory_usage(&self) -> &u64
Server memory usage
Trait Implementations§
source§impl Clone for ServerUsage
impl Clone for ServerUsage
source§fn clone(&self) -> ServerUsage
fn clone(&self) -> ServerUsage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more