Skip to content

Commit

Permalink
Also log number of objects in heap
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Feb 11, 2024
1 parent d3e82c0 commit 106fa2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/backup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 106fa2f

Please sign in to comment.