pub struct DecoderWorkspaceStats { /* private fields */ }Expand description
Observable counters and retained ownership for a reusable decoder workspace.
Implementations§
Source§impl DecoderWorkspaceStats
impl DecoderWorkspaceStats
Sourcepub const fn decode_calls(self) -> u64
pub const fn decode_calls(self) -> u64
Number of native image decode calls made with this workspace.
Sourcepub const fn component_owner_reuses(self) -> u64
pub const fn component_owner_reuses(self) -> u64
Number of calls that began with reusable decoded-component owners.
Sourcepub const fn tier1_owner_reuses(self) -> u64
pub const fn tier1_owner_reuses(self) -> u64
Number of calls that began with reusable Tier-1 allocations.
Sourcepub const fn idwt_owner_reuses(self) -> u64
pub const fn idwt_owner_reuses(self) -> u64
Number of calls that began with reusable IDWT allocations.
Sourcepub const fn scratch_capacity_retries(self) -> u64
pub const fn scratch_capacity_retries(self) -> u64
Number of retained-scratch evictions followed by a fresh retry.
Sourcepub const fn retained_component_bytes(self) -> usize
pub const fn retained_component_bytes(self) -> usize
Retained component-owner capacity after the most recent completed core decode.
Sourcepub const fn retained_tier1_bytes(self) -> usize
pub const fn retained_tier1_bytes(self) -> usize
Retained classic and HT Tier-1 capacity after the most recent call.
Sourcepub const fn retained_idwt_bytes(self) -> usize
pub const fn retained_idwt_bytes(self) -> usize
Retained floating-point and exact-integer IDWT capacity after the most recent call.
Sourcepub const fn retained_scratch_bytes(self) -> usize
pub const fn retained_scratch_bytes(self) -> usize
Total retained lifetime-free decode scratch after the most recent call.
Trait Implementations§
Source§impl Clone for DecoderWorkspaceStats
impl Clone for DecoderWorkspaceStats
Source§fn clone(&self) -> DecoderWorkspaceStats
fn clone(&self) -> DecoderWorkspaceStats
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 DecoderWorkspaceStats
Source§impl Debug for DecoderWorkspaceStats
impl Debug for DecoderWorkspaceStats
Source§impl Default for DecoderWorkspaceStats
impl Default for DecoderWorkspaceStats
Source§fn default() -> DecoderWorkspaceStats
fn default() -> DecoderWorkspaceStats
Returns the “default value” for a type. Read more
impl Eq for DecoderWorkspaceStats
Source§impl PartialEq for DecoderWorkspaceStats
impl PartialEq for DecoderWorkspaceStats
impl StructuralPartialEq for DecoderWorkspaceStats
Auto Trait Implementations§
impl Freeze for DecoderWorkspaceStats
impl RefUnwindSafe for DecoderWorkspaceStats
impl Send for DecoderWorkspaceStats
impl Sync for DecoderWorkspaceStats
impl Unpin for DecoderWorkspaceStats
impl UnsafeUnpin for DecoderWorkspaceStats
impl UnwindSafe for DecoderWorkspaceStats
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