From 106fa2f2042b7728cf23f2c715b074c4de46d763 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Sun, 11 Feb 2024 12:17:13 +0100 Subject: [PATCH] Also log number of objects in heap --- cmd/backup/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/backup/main.go b/cmd/backup/main.go index ed59883..f52183c 100644 --- a/cmd/backup/main.go +++ b/cmd/backup/main.go @@ -204,6 +204,8 @@ func (c *command) runInForeground(profileCronExpression string) error { formatBytes(memStats.HeapInuse, false), "memory_heap_sys", formatBytes(memStats.HeapSys, false), + "memory_heap_objects", + memStats.HeapObjects, ) }); err != nil { return fmt.Errorf("runInForeground: error adding profiling job: %w", err)