pub struct GainSummary {
pub total_commands: usize,
pub total_input: usize,
pub total_output: usize,
pub total_saved: usize,
pub avg_savings_pct: f64,
pub total_time_ms: u64,
pub avg_time_ms: u64,
pub by_command: Vec<(String, usize, usize, f64, u64)>,
pub by_day: Vec<(String, usize)>,
}Expand description
Aggregated statistics across all recorded commands.
Provides overall metrics and breakdowns by command and by day.
Returned by Tracker::get_summary.
Fields§
§total_commands: usizeTotal number of commands recorded
total_input: usizeTotal input tokens across all commands
total_output: usizeTotal output tokens across all commands
total_saved: usizeTotal tokens saved (input - output)
avg_savings_pct: f64Average savings percentage across all commands
total_time_ms: u64Total execution time across all commands (milliseconds)
avg_time_ms: u64Average execution time per command (milliseconds)
by_command: Vec<(String, usize, usize, f64, u64)>Top 10 commands by tokens saved: (cmd, count, saved, avg_pct, avg_time_ms)
by_day: Vec<(String, usize)>Last 30 days of activity: (date, saved_tokens)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GainSummary
impl RefUnwindSafe for GainSummary
impl Send for GainSummary
impl Sync for GainSummary
impl Unpin for GainSummary
impl UnsafeUnpin for GainSummary
impl UnwindSafe for GainSummary
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