pub struct AggregatedAnalysisRow {
pub model: String,
pub edit_lines: usize,
pub read_lines: usize,
pub write_lines: usize,
pub bash_count: usize,
pub edit_count: usize,
pub read_count: usize,
pub todo_write_count: usize,
pub write_count: usize,
}Expand description
Single row of aggregated file-operation metrics for one model.
Counts are summed across every session that used the model in the active
time range. The *_lines fields total the lines touched by edit/read/write
operations; the *_count fields total how many times each tool was called.
Serializes with camelCase field names for library callers that persist a
compact projection. The CLI’s analysis --json output uses the full
CodeAnalysis shape instead.
This is a neutral data type shared by the analysis roll-up and the
process-local scan cache, so it lives in models rather than either
feature.
Fields§
§model: StringModel name the metrics are grouped under.
edit_lines: usizeTotal lines changed by Edit/MultiEdit operations.
read_lines: usizeTotal lines returned by Read operations.
write_lines: usizeTotal lines emitted by Write operations.
bash_count: usizeNumber of Bash tool calls.
edit_count: usizeNumber of Edit tool calls.
read_count: usizeNumber of Read tool calls.
todo_write_count: usizeNumber of TodoWrite tool calls.
write_count: usizeNumber of Write tool calls.
Trait Implementations§
Source§impl Clone for AggregatedAnalysisRow
impl Clone for AggregatedAnalysisRow
Source§fn clone(&self) -> AggregatedAnalysisRow
fn clone(&self) -> AggregatedAnalysisRow
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AggregatedAnalysisRow
impl Debug for AggregatedAnalysisRow
Source§impl<'de> Deserialize<'de> for AggregatedAnalysisRow
impl<'de> Deserialize<'de> for AggregatedAnalysisRow
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>,
Auto Trait Implementations§
impl Freeze for AggregatedAnalysisRow
impl RefUnwindSafe for AggregatedAnalysisRow
impl Send for AggregatedAnalysisRow
impl Sync for AggregatedAnalysisRow
impl Unpin for AggregatedAnalysisRow
impl UnsafeUnpin for AggregatedAnalysisRow
impl UnwindSafe for AggregatedAnalysisRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more