pub struct PluginPerformanceMetrics {
pub plugin_name: String,
pub total_time: Duration,
pub init_time: Duration,
pub execute_time: Duration,
pub cleanup_time: Duration,
pub iterations: u32,
pub avg_time_per_iteration: Duration,
pub min_time: Duration,
pub max_time: Duration,
pub std_deviation: f64,
pub memory_metrics: Option<MemoryMetrics>,
}Expand description
Performance metrics for plugin execution
Fields§
§plugin_name: StringPlugin name
total_time: DurationTotal execution time including initialization and cleanup
init_time: DurationTime spent in initialization phase
execute_time: DurationTime spent in execution phase
cleanup_time: DurationTime spent in cleanup phase
iterations: u32Number of iterations (for benchmarking)
avg_time_per_iteration: DurationAverage time per iteration
min_time: DurationMinimum execution time observed
max_time: DurationMaximum execution time observed
std_deviation: f64Standard deviation of execution times
memory_metrics: Option<MemoryMetrics>Memory usage metrics (if available)
Trait Implementations§
Source§impl Clone for PluginPerformanceMetrics
impl Clone for PluginPerformanceMetrics
Source§impl Debug for PluginPerformanceMetrics
impl Debug for PluginPerformanceMetrics
Source§impl<'de> Deserialize<'de> for PluginPerformanceMetrics
impl<'de> Deserialize<'de> for PluginPerformanceMetrics
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 PluginPerformanceMetrics
impl RefUnwindSafe for PluginPerformanceMetrics
impl Send for PluginPerformanceMetrics
impl Sync for PluginPerformanceMetrics
impl Unpin for PluginPerformanceMetrics
impl UnsafeUnpin for PluginPerformanceMetrics
impl UnwindSafe for PluginPerformanceMetrics
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