pub struct FunctionCallProfile {
pub function_name: String,
pub call_count: u64,
pub total_time_us: u64,
pub average_time_us: f64,
pub min_time_us: u64,
pub max_time_us: u64,
pub percentiles: HashMap<String, u64>,
pub call_history: VecDeque<FunctionCall>,
}
Expand description
Function call profile
Fields§
§function_name: String
Function name
call_count: u64
Total calls
total_time_us: u64
Total time spent (microseconds)
average_time_us: f64
Average time per call (microseconds)
min_time_us: u64
Minimum time (microseconds)
max_time_us: u64
Maximum time (microseconds)
percentiles: HashMap<String, u64>
Time percentiles
call_history: VecDeque<FunctionCall>
Call history
Trait Implementations§
Source§impl Clone for FunctionCallProfile
impl Clone for FunctionCallProfile
Source§fn clone(&self) -> FunctionCallProfile
fn clone(&self) -> FunctionCallProfile
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 FunctionCallProfile
impl Debug for FunctionCallProfile
Source§impl<'de> Deserialize<'de> for FunctionCallProfile
impl<'de> Deserialize<'de> for FunctionCallProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FunctionCallProfile
impl RefUnwindSafe for FunctionCallProfile
impl Send for FunctionCallProfile
impl Sync for FunctionCallProfile
impl Unpin for FunctionCallProfile
impl UnwindSafe for FunctionCallProfile
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