pub struct AllocationProfile {
pub function_name: String,
pub allocation_sites: Vec<AllocationSiteProfile>,
}Fields§
§function_name: String§allocation_sites: Vec<AllocationSiteProfile>Implementations§
Source§impl AllocationProfile
impl AllocationProfile
pub fn new(function_name: impl Into<String>) -> Self
pub fn add_site(&mut self, site: AllocationSiteProfile)
pub fn stack_promotion_candidates(&self) -> Vec<&AllocationSiteProfile>
pub fn total_allocations(&self) -> u64
Auto Trait Implementations§
impl Freeze for AllocationProfile
impl RefUnwindSafe for AllocationProfile
impl Send for AllocationProfile
impl Sync for AllocationProfile
impl Unpin for AllocationProfile
impl UnsafeUnpin for AllocationProfile
impl UnwindSafe for AllocationProfile
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