pub struct CudaDecodePoolSnapshot {
pub cached_buffers: usize,
pub cached_bytes: usize,
pub deferred_buffers: usize,
pub deferred_bytes: usize,
pub reuse_holds: usize,
pub peak_cached_bytes: usize,
pub peak_deferred_bytes: usize,
}Expand description
Stable retention snapshot for one internal CUDA decode buffer pool.
Fields§
§cached_buffers: usizeCompleted device buffers immediately available for reuse.
cached_bytes: usizeCompleted device-allocation bytes immediately available for reuse.
deferred_buffers: usizeBuffers held until queued work establishes completion.
deferred_bytes: usizeDevice-allocation bytes held until queued work establishes completion.
reuse_holds: usizeActive completion guards preventing deferred-buffer reuse.
peak_cached_bytes: usizeHighest completed allocation-byte total observed by this pool.
peak_deferred_bytes: usizeHighest deferred allocation-byte total observed by this pool.
Implementations§
Source§impl CudaDecodePoolSnapshot
impl CudaDecodePoolSnapshot
Sourcepub const fn retained_bytes(self) -> usize
pub const fn retained_bytes(self) -> usize
Device bytes currently retained either for reuse or pending completion.
Sourcepub const fn peak_retained_bytes_upper_bound(self) -> usize
pub const fn peak_retained_bytes_upper_bound(self) -> usize
Conservative upper bound obtained by adding the independent pool peaks.
Trait Implementations§
Source§impl Clone for CudaDecodePoolSnapshot
impl Clone for CudaDecodePoolSnapshot
Source§fn clone(&self) -> CudaDecodePoolSnapshot
fn clone(&self) -> CudaDecodePoolSnapshot
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 CudaDecodePoolSnapshot
Source§impl Debug for CudaDecodePoolSnapshot
impl Debug for CudaDecodePoolSnapshot
Source§impl Default for CudaDecodePoolSnapshot
impl Default for CudaDecodePoolSnapshot
Source§fn default() -> CudaDecodePoolSnapshot
fn default() -> CudaDecodePoolSnapshot
Returns the “default value” for a type. Read more
impl Eq for CudaDecodePoolSnapshot
Source§impl PartialEq for CudaDecodePoolSnapshot
impl PartialEq for CudaDecodePoolSnapshot
impl StructuralPartialEq for CudaDecodePoolSnapshot
Auto Trait Implementations§
impl Freeze for CudaDecodePoolSnapshot
impl RefUnwindSafe for CudaDecodePoolSnapshot
impl Send for CudaDecodePoolSnapshot
impl Sync for CudaDecodePoolSnapshot
impl Unpin for CudaDecodePoolSnapshot
impl UnsafeUnpin for CudaDecodePoolSnapshot
impl UnwindSafe for CudaDecodePoolSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more