pub struct PgoConfig {
pub hot_threshold: u64,
pub inline_hot: bool,
pub specialize_hot: bool,
pub max_inline_size: usize,
}Expand description
Configuration knobs for the PGO pass.
Fields§
§hot_threshold: u64Call-count threshold above which a function is considered “hot”.
inline_hot: boolWhether to inline hot callees at their call sites.
specialize_hot: boolWhether to emit specialised clones of hot polymorphic functions.
max_inline_size: usizeUpper bound on the IR-node size of a callee eligible for inlining.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PgoConfig
impl RefUnwindSafe for PgoConfig
impl Send for PgoConfig
impl Sync for PgoConfig
impl Unpin for PgoConfig
impl UnsafeUnpin for PgoConfig
impl UnwindSafe for PgoConfig
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