mirror of
https://github.com/offen/docker-volume-backup.git
synced 2025-12-05 17:18:02 +01:00
Compare commits
6 Commits
v2.37.0
...
v2.37.0-al
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01e41f45d1 | ||
|
|
68ba6ce5a1 | ||
|
|
7cfea62933 | ||
|
|
d14e826529 | ||
|
|
21191d601a | ||
|
|
d642a60c4d |
@@ -191,7 +191,7 @@ func (c *command) runInForeground(profileCronExpression string) error {
|
||||
}
|
||||
|
||||
if profileCronExpression != "" {
|
||||
if _, err := cr.AddFunc(profileCronExpression, func() {
|
||||
cr.AddFunc(profileCronExpression, func() {
|
||||
memStats := runtime.MemStats{}
|
||||
runtime.ReadMemStats(&memStats)
|
||||
c.logger.Info(
|
||||
@@ -204,12 +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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
var quit = make(chan os.Signal, 1)
|
||||
|
||||
Reference in New Issue
Block a user