From ec55536734976ae12f0186b667cd698d1e9f92d2 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Thu, 19 Mar 2026 15:24:42 -0700 Subject: [PATCH] mlxrunner: show time since last used in cache dump tree --- x/mlxrunner/cache.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x/mlxrunner/cache.go b/x/mlxrunner/cache.go index f403b5dfc..1ef52c5df 100644 --- a/x/mlxrunner/cache.go +++ b/x/mlxrunner/cache.go @@ -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")