stats

package
v0.70.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package stats is the f10 stats command: active minutes per task by step group.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

Command is the stats verb: active time per task and step: every wait on the user is out, tool run time stays in. Density is implement minutes per 100 changed lines; a task from before waits were recorded has no numbers.

func StatRows

func StatRows(events []ledger.Event, task string, cutoff time.Time) []statRow

StatRows is a row per task with a window or a size, newest first: a task named is shown whatever its age, else only those active since cutoff.

func StatsCutoff

func StatsCutoff(arg string, now time.Time) (time.Time, error)

StatsCutoff is where --since starts the table: a count of days or weeks back from now.

func WriteStats

func WriteStats(w io.Writer, rows []statRow) error

func WriteSteps

func WriteSteps(w io.Writer, r statRow) error

WriteSteps is one task's active time per step, with a total.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL