aboutsummaryrefslogtreecommitdiffstats
path: root/syz-manager/stats.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-07-05 11:37:34 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-07-05 11:43:19 +0000
commite5f6d2961cef719e286f3f5f7f4ab868fc4ba7cd (patch)
tree0e50c3d141fffd59eb60f2bd7c21fa0440f459ae /syz-manager/stats.go
parentc60038a3f5efcf3a117af946fdff6c2c630215df (diff)
pkg/image: provide stats about images
Diffstat (limited to 'syz-manager/stats.go')
-rw-r--r--syz-manager/stats.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/syz-manager/stats.go b/syz-manager/stats.go
index 0f49c33db..cffa7e4c1 100644
--- a/syz-manager/stats.go
+++ b/syz-manager/stats.go
@@ -8,6 +8,7 @@ import (
"runtime"
"time"
+ "github.com/google/syzkaller/pkg/image"
"github.com/google/syzkaller/pkg/stats"
)
@@ -68,5 +69,15 @@ func (mgr *Manager) initStats() {
}, func(v int, period time.Duration) string {
return fmt.Sprintf("%v MB", v>>20)
})
+ stats.Create("images memory", "Uncompressed images memory (bytes)", stats.Graph("memory"),
+ func() int {
+ return int(image.StatMemory.Load())
+ }, func(v int, period time.Duration) string {
+ return fmt.Sprintf("%v MB", v>>20)
+ })
+ stats.Create("uncompressed images", "Total number of uncompressed images in memory",
+ func() int {
+ return int(image.StatImages.Load())
+ })
mgr.statCoverFiltered = stats.Create("filtered coverage", "", stats.NoGraph)
}