pub struct CallInliner { /* private fields */ }Expand description
A simple call inliner that collects candidates.
Implementations§
Source§impl CallInliner
impl CallInliner
Sourcepub fn register(&mut self, candidate: InlineCandidate)
pub fn register(&mut self, candidate: InlineCandidate)
Register a candidate.
Sourcepub fn top_candidates(&self, n: usize) -> Vec<&InlineCandidate>
pub fn top_candidates(&self, n: usize) -> Vec<&InlineCandidate>
Get the top-N candidates by inline score.
Sourcepub fn record_inline(&mut self, fn_id: u32)
pub fn record_inline(&mut self, fn_id: u32)
Mark a candidate as inlined.
Sourcepub fn inlined_count(&self) -> u64
pub fn inlined_count(&self) -> u64
Total inlines performed.
Sourcepub fn candidate_count(&self) -> usize
pub fn candidate_count(&self) -> usize
Remaining candidate count.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallInliner
impl RefUnwindSafe for CallInliner
impl Send for CallInliner
impl Sync for CallInliner
impl Unpin for CallInliner
impl UnsafeUnpin for CallInliner
impl UnwindSafe for CallInliner
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