pub struct FunctionProfile {
pub name: String,
pub total_time: Duration,
pub self_time: Duration,
pub call_count: u64,
pub avg_time_per_call: Duration,
pub max_time_per_call: Duration,
pub min_time_per_call: Duration,
pub cpu_cycles: u64,
pub cache_misses: u64,
pub branch_misses: u64,
pub hotness_score: f64,
pub optimization_opportunities: Vec<OptimizationOpportunity>,
}Expand description
Function-level performance profile
Fields§
§name: String§total_time: Duration§self_time: Duration§call_count: u64§avg_time_per_call: Duration§max_time_per_call: Duration§min_time_per_call: Duration§cpu_cycles: u64§cache_misses: u64§branch_misses: u64§hotness_score: f64§optimization_opportunities: Vec<OptimizationOpportunity>Trait Implementations§
Source§impl Clone for FunctionProfile
impl Clone for FunctionProfile
Source§fn clone(&self) -> FunctionProfile
fn clone(&self) -> FunctionProfile
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 FunctionProfile
impl RefUnwindSafe for FunctionProfile
impl Send for FunctionProfile
impl Sync for FunctionProfile
impl Unpin for FunctionProfile
impl UnwindSafe for FunctionProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more