pub struct FunctionProfile {
pub name: String,
pub total_calls: u64,
pub blocks: Vec<BlockProfile>,
pub edges: Vec<EdgeProfile>,
pub average_call_depth: f64,
}Fields§
§name: String§total_calls: u64§blocks: Vec<BlockProfile>§edges: Vec<EdgeProfile>§average_call_depth: f64Implementations§
Source§impl FunctionProfile
impl FunctionProfile
pub fn new(name: impl Into<String>) -> Self
pub fn add_block(&mut self, block_id: u32, count: u64, hot_threshold: u64)
pub fn hot_blocks(&self) -> Vec<&BlockProfile>
pub fn total_block_executions(&self) -> u64
pub fn is_hot_function(&self, threshold: u64) -> bool
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 UnsafeUnpin 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