pub struct PgoFeedback {
pub run_count: u32,
pub profiles: Vec<FunctionProfile>,
pub call_graph: CallGraph,
}Fields§
§run_count: u32§profiles: Vec<FunctionProfile>§call_graph: CallGraphImplementations§
Source§impl PgoFeedback
impl PgoFeedback
pub fn new() -> Self
pub fn add_profile(&mut self, profile: FunctionProfile)
pub fn increment_run(&mut self)
pub fn normalize_counts(&mut self)
pub fn top_hot_functions( &self, n: usize, threshold: u64, ) -> Vec<&FunctionProfile>
Auto Trait Implementations§
impl Freeze for PgoFeedback
impl RefUnwindSafe for PgoFeedback
impl Send for PgoFeedback
impl Sync for PgoFeedback
impl Unpin for PgoFeedback
impl UnsafeUnpin for PgoFeedback
impl UnwindSafe for PgoFeedback
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