pub struct ThinLtoPgoData {
pub module_hash: u64,
pub function_profiles: Vec<FunctionProfile>,
pub summary_flags: u32,
}Fields§
§module_hash: u64§function_profiles: Vec<FunctionProfile>§summary_flags: u32Implementations§
Source§impl ThinLtoPgoData
impl ThinLtoPgoData
pub fn new(module_hash: u64) -> Self
pub fn add_profile(&mut self, profile: FunctionProfile)
pub fn is_empty(&self) -> bool
pub fn hot_function_names(&self, threshold: u64) -> Vec<&str>
Trait Implementations§
Source§impl Clone for ThinLtoPgoData
impl Clone for ThinLtoPgoData
Source§fn clone(&self) -> ThinLtoPgoData
fn clone(&self) -> ThinLtoPgoData
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 ThinLtoPgoData
impl RefUnwindSafe for ThinLtoPgoData
impl Send for ThinLtoPgoData
impl Sync for ThinLtoPgoData
impl Unpin for ThinLtoPgoData
impl UnsafeUnpin for ThinLtoPgoData
impl UnwindSafe for ThinLtoPgoData
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