pub struct ExtendedInlineStats {
pub always_inline_count: usize,
pub never_inline_count: usize,
pub heuristic_inlined: usize,
pub heuristic_not_inlined: usize,
pub once_only_inlined: usize,
pub total_size_added: u64,
pub total_size_saved: u64,
pub partial_inlines: usize,
pub speculative_inlines: usize,
pub total_functions_processed: usize,
pub inlining_order: Vec<String>,
}Fields§
§always_inline_count: usize§never_inline_count: usize§heuristic_inlined: usize§heuristic_not_inlined: usize§once_only_inlined: usize§total_size_added: u64§total_size_saved: u64§partial_inlines: usize§speculative_inlines: usize§total_functions_processed: usizeTotal number of functions processed during inlining.
inlining_order: Vec<String>The order in which functions were inlined.
Implementations§
Source§impl ExtendedInlineStats
impl ExtendedInlineStats
pub fn new() -> Self
pub fn record_decision(&mut self, decision: &InlineDecision, did_inline: bool)
pub fn record_size_change(&mut self, added: u64, saved: u64)
pub fn net_size_change(&self) -> i64
pub fn total_inlined(&self) -> usize
pub fn summary(&self) -> String
Trait Implementations§
Source§impl Clone for ExtendedInlineStats
impl Clone for ExtendedInlineStats
Source§fn clone(&self) -> ExtendedInlineStats
fn clone(&self) -> ExtendedInlineStats
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 moreSource§impl Debug for ExtendedInlineStats
impl Debug for ExtendedInlineStats
Source§impl Default for ExtendedInlineStats
impl Default for ExtendedInlineStats
Source§fn default() -> ExtendedInlineStats
fn default() -> ExtendedInlineStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExtendedInlineStats
impl RefUnwindSafe for ExtendedInlineStats
impl Send for ExtendedInlineStats
impl Sync for ExtendedInlineStats
impl Unpin for ExtendedInlineStats
impl UnsafeUnpin for ExtendedInlineStats
impl UnwindSafe for ExtendedInlineStats
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