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 Rows 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: DurationThe server-side processing time that was consumed by the last server-call that was triggered from the parent object.
accum_proc_time: DurationThe accumulated server-side processing time that was consumed by all server-calls that were triggered from the parent object.
server_memory_usage: u64The 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