pub struct PoolingReport {
pub total_shapes_accessed: usize,
pub total_accesses: usize,
pub recommended_shapes_count: usize,
pub recommended_shapes: Vec<String>,
pub top_10_shapes: Vec<(String, usize)>,
pub potential_hit_rate: f64,
pub policy: PoolingPolicy,
}Expand description
Report with pooling recommendations
Fields§
§total_shapes_accessed: usizeTotal number of unique shapes accessed
total_accesses: usizeTotal number of allocation requests
recommended_shapes_count: usizeNumber of shapes recommended for pooling
recommended_shapes: Vec<String>List of recommended shape signatures
top_10_shapes: Vec<(String, usize)>Top 10 most frequently accessed shapes
potential_hit_rate: f64Potential hit rate if pooling is enabled for recommended shapes
policy: PoolingPolicyPolicy used for recommendations
Implementations§
Source§impl PoolingReport
impl PoolingReport
Trait Implementations§
Source§impl Clone for PoolingReport
impl Clone for PoolingReport
Source§fn clone(&self) -> PoolingReport
fn clone(&self) -> PoolingReport
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PoolingReport
impl RefUnwindSafe for PoolingReport
impl Send for PoolingReport
impl Sync for PoolingReport
impl Unpin for PoolingReport
impl UnwindSafe for PoolingReport
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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