pub struct PgoPassManager {
pub passes: Vec<String>,
pub feedback: PgoFeedback,
pub heuristic: InlineHeuristic,
pub hot_cold_split: HotColdSplit,
}Fields§
§passes: Vec<String>§feedback: PgoFeedback§heuristic: InlineHeuristic§hot_cold_split: HotColdSplitImplementations§
Source§impl PgoPassManager
impl PgoPassManager
pub fn new(feedback: PgoFeedback) -> Self
pub fn add_pass(&mut self, pass: impl Into<String>)
pub fn compute_hot_cold(&mut self)
pub fn is_hot_function(&self, name: &str) -> bool
pub fn pass_count(&self) -> usize
Auto Trait Implementations§
impl Freeze for PgoPassManager
impl RefUnwindSafe for PgoPassManager
impl Send for PgoPassManager
impl Sync for PgoPassManager
impl Unpin for PgoPassManager
impl UnsafeUnpin for PgoPassManager
impl UnwindSafe for PgoPassManager
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