Struct CommandBufferMetrics
pub struct CommandBufferMetrics {
pub accepted: u64,
pub rejected: u64,
pub started: u64,
pub applied: u64,
pub drained: u64,
pub discarded: u64,
pub high_water_mark: usize,
}Expand description
Queue activity since construction or the last metrics reset.
Counters saturate independently at u64::MAX. Commands may have been accepted
in a previous interval, so activity counts need not balance after a reset.
Fields§
§accepted: u64Pushes accepted into the queue, including commands not yet applied.
rejected: u64Pushes rejected at capacity, including every push at zero capacity.
started: u64Commands removed for invocation by the buffer, including those that panic.
applied: u64Commands invoked by the buffer that returned normally.
drained: u64Commands handed to callers by a drain, regardless of their later use.
discarded: u64Commands removed by CommandBuffer::clear, without invoking them.
high_water_mark: usizeLargest queued count, including the count at the last metrics reset.
Trait Implementations§
§impl Clone for CommandBufferMetrics
impl Clone for CommandBufferMetrics
§fn clone(&self) -> CommandBufferMetrics
fn clone(&self) -> CommandBufferMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for CommandBufferMetrics
impl Debug for CommandBufferMetrics
§impl Default for CommandBufferMetrics
impl Default for CommandBufferMetrics
§fn default() -> CommandBufferMetrics
fn default() -> CommandBufferMetrics
Returns the “default value” for a type. Read more
§impl PartialEq for CommandBufferMetrics
impl PartialEq for CommandBufferMetrics
impl Copy for CommandBufferMetrics
impl Eq for CommandBufferMetrics
impl StructuralPartialEq for CommandBufferMetrics
Auto Trait Implementations§
impl Freeze for CommandBufferMetrics
impl RefUnwindSafe for CommandBufferMetrics
impl Send for CommandBufferMetrics
impl Sync for CommandBufferMetrics
impl Unpin for CommandBufferMetrics
impl UnwindSafe for CommandBufferMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more