Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

mlxrunner: show time since last used in cache dump tree

Jesse Grossec5553673497
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")