Documentation
¶
Overview ¶
Package inspect aggregates database statistics for the CLI and MCP surfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HumanDuration ¶
Render a non-negative duration in seconds as the largest non-zero unit (s/m/h/d).
func TruncateHash ¶
Truncate an opaque hash to maxHashLen runes, suffixing "..." if shortened.
Types ¶
type LatestSnapshot ¶
type Stats ¶
type Stats struct {
DBPath string
DBSizeBytes int64
NodeCount int
SnapshotCount int
AvgTemp float64
MedianTemp float64
HotThreshold float64
ColdThreshold float64
HotCount int
ColdCount int
PinnedCount int
TokenCountTotal int64
FTSRowCount int
NodeCountsByType map[string]int
RelationCount int
RelationsByOrigin map[string]int
PendingRelationCount int
Latest *LatestSnapshot
}
Click to show internal directories.
Click to hide internal directories.