pub struct ResourceMetrics {
pub buffer_pools: RwLock<BufferPoolStats>,
pub parser_cache: RwLock<ParserCacheStats>,
pub memory_usage: AtomicU64,
pub cpu_time: RwLock<CpuTimeTracker>,
}Expand description
Resource usage metrics
Fields§
§buffer_pools: RwLock<BufferPoolStats>Buffer pool statistics
parser_cache: RwLock<ParserCacheStats>Parser cache statistics
memory_usage: AtomicU64Memory usage estimates
cpu_time: RwLock<CpuTimeTracker>CPU time tracking
Trait Implementations§
Source§impl Default for ResourceMetrics
impl Default for ResourceMetrics
Source§fn default() -> ResourceMetrics
fn default() -> ResourceMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ResourceMetrics
impl !RefUnwindSafe for ResourceMetrics
impl Send for ResourceMetrics
impl Sync for ResourceMetrics
impl Unpin for ResourceMetrics
impl UnwindSafe for ResourceMetrics
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more