summaryrefslogtreecommitdiffhomepage
path: root/types
diff options
context:
space:
mode:
Diffstat (limited to 'types')
-rw-r--r--types/logger/rusage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/logger/rusage.go b/types/logger/rusage.go
index 3943636d6..7b728ee0b 100644
--- a/types/logger/rusage.go
+++ b/types/logger/rusage.go
@@ -15,7 +15,7 @@ func RusagePrefixLog(logf Logf) Logf {
return func(f string, argv ...any) {
var m runtime.MemStats
runtime.ReadMemStats(&m)
- goMem := float64(m.HeapInuse+m.StackInuse) / (1 << 20)
+ goMem := float64(m.HeapInuse) / (1 << 20)
maxRSS := rusageMaxRSS()
pf := fmt.Sprintf("%.1fM/%.1fM %s", goMem, maxRSS, f)
logf(pf, argv...)