Also log number of objects in heap

This commit is contained in:
Frederik Ring 2024-02-11 12:17:13 +01:00
parent d3e82c0c5c
commit 106fa2f204

View File

@ -204,6 +204,8 @@ func (c *command) runInForeground(profileCronExpression string) error {
formatBytes(memStats.HeapInuse, false), formatBytes(memStats.HeapInuse, false),
"memory_heap_sys", "memory_heap_sys",
formatBytes(memStats.HeapSys, false), formatBytes(memStats.HeapSys, false),
"memory_heap_objects",
memStats.HeapObjects,
) )
}); err != nil { }); err != nil {
return fmt.Errorf("runInForeground: error adding profiling job: %w", err) return fmt.Errorf("runInForeground: error adding profiling job: %w", err)