pub struct StagingStats {
pub allocations: u64,
pub staged_transfers: u64,
pub direct_transfers: u64,
pub bytes_uploaded: u64,
pub bytes_downloaded: u64,
}Expand description
Counters describing how a StagingBuffer has been used.
Chiefly useful for asserting in tests (and in production tracing) that the
buffer really is being reused rather than silently re-pinned every call —
the entire point of the type. A healthy hot loop shows allocations == 1
and a large staged_transfers.
Fields§
§allocations: u64Number of times a pinned host allocation was performed (initial + grows).
staged_transfers: u64Transfers that were staged through the pinned buffer.
direct_transfers: u64Transfers routed straight to the driver’s pageable path because they
exceeded StagingBuffer::auto_stage_max_bytes.
bytes_uploaded: u64Total bytes uploaded host→device through this buffer (both paths).
bytes_downloaded: u64Total bytes downloaded device→host through this buffer (both paths).
Trait Implementations§
Source§impl Clone for StagingStats
impl Clone for StagingStats
Source§fn clone(&self) -> StagingStats
fn clone(&self) -> StagingStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StagingStats
Source§impl Debug for StagingStats
impl Debug for StagingStats
Source§impl Default for StagingStats
impl Default for StagingStats
Source§fn default() -> StagingStats
fn default() -> StagingStats
Returns the “default value” for a type. Read more
impl Eq for StagingStats
Source§impl PartialEq for StagingStats
impl PartialEq for StagingStats
impl StructuralPartialEq for StagingStats
Auto Trait Implementations§
impl Freeze for StagingStats
impl RefUnwindSafe for StagingStats
impl Send for StagingStats
impl Sync for StagingStats
impl Unpin for StagingStats
impl UnsafeUnpin for StagingStats
impl UnwindSafe for StagingStats
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