pub struct ToolStatsSnapshot {
pub call_count: u64,
pub success_count: u64,
pub p50_latency_ns: u64,
pub peak_latency_ns: u64,
pub cpu_time_ns: u64,
pub lmdb_pages_touched: u64,
pub last_used_unix: u64,
pub effectiveness: f32,
}Expand description
A serializable snapshot of tool statistics.
Fields§
§call_count: u64Total number of calls
success_count: u64Number of successful calls
p50_latency_ns: u64Central latency estimate in nanoseconds (EWMA).
peak_latency_ns: u64Highest latency seen in nanoseconds.
cpu_time_ns: u64Total CPU time consumed in nanoseconds
lmdb_pages_touched: u64Total LMDB pages touched
last_used_unix: u64Unix timestamp of last use
effectiveness: f32Karma-weighted effectiveness score (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for ToolStatsSnapshot
impl Clone for ToolStatsSnapshot
Source§fn clone(&self) -> ToolStatsSnapshot
fn clone(&self) -> ToolStatsSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolStatsSnapshot
impl Debug for ToolStatsSnapshot
Source§impl Default for ToolStatsSnapshot
impl Default for ToolStatsSnapshot
Source§fn default() -> ToolStatsSnapshot
fn default() -> ToolStatsSnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolStatsSnapshot
impl<'de> Deserialize<'de> for ToolStatsSnapshot
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 ToolStatsSnapshot
impl RefUnwindSafe for ToolStatsSnapshot
impl Send for ToolStatsSnapshot
impl Sync for ToolStatsSnapshot
impl Unpin for ToolStatsSnapshot
impl UnsafeUnpin for ToolStatsSnapshot
impl UnwindSafe for ToolStatsSnapshot
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