mlxrunner: show time since last used in cache dump tree

This commit is contained in:
Jesse Gross
2026-03-19 15:24:42 -07:00
parent 77491439c2
commit ec55536734

View File

@@ -529,6 +529,9 @@ func (c *kvCache) dumpTree() {
if nodeBytes > 0 {
label += " " + mlx.PrettyBytes(int(nodeBytes)).String()
}
if !n.lastUsed.IsZero() {
label += fmt.Sprintf(" %s ago", time.Since(n.lastUsed).Truncate(time.Millisecond))
}
var flags []string
if n.user {
flags = append(flags, "user")