pub struct AllocationSiteProfile {
pub site_id: u32,
pub alloc_count: u64,
pub avg_size: f64,
pub max_size: u64,
pub live_at_exit: u64,
}Fields§
§site_id: u32§alloc_count: u64§avg_size: f64§max_size: u64§live_at_exit: u64Implementations§
Source§impl AllocationSiteProfile
impl AllocationSiteProfile
pub fn new(site_id: u32) -> Self
pub fn is_short_lived(&self) -> bool
pub fn stack_promotion_candidate(&self) -> bool
Trait Implementations§
Source§impl Clone for AllocationSiteProfile
impl Clone for AllocationSiteProfile
Source§fn clone(&self) -> AllocationSiteProfile
fn clone(&self) -> AllocationSiteProfile
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 moreAuto Trait Implementations§
impl Freeze for AllocationSiteProfile
impl RefUnwindSafe for AllocationSiteProfile
impl Send for AllocationSiteProfile
impl Sync for AllocationSiteProfile
impl Unpin for AllocationSiteProfile
impl UnsafeUnpin for AllocationSiteProfile
impl UnwindSafe for AllocationSiteProfile
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