Skip to main content

compute_command_stats

Function compute_command_stats 

Source
pub fn compute_command_stats(log_dir: &Path) -> CoreResult<CommandStats>
Expand description

Compute command usage statistics from execution logs.

Parses all .jsonl files under log_dir, looking for command_end events, and counts how many times each known command ID has been executed.

Returns a CommandStats struct with counts for all known commands.