Add num-images and heap-in-use fields to /about

This commit is contained in:
Carl Pearson
2025-05-30 09:14:13 -06:00
parent 3855fe2abe
commit 96cb5bafcd
2 changed files with 18 additions and 3 deletions

View File

@@ -117,3 +117,10 @@ func Save(data []byte, contentType string) string {
}
return store.Save(data, contentType)
}
func NumImages() int {
if store == nil {
store = newStore()
}
return len(store.images)
}