Skip to content

Commit 0463c1d

Browse files
mtardytklauser
authored andcommitted
agent: add the off-heap BuckHashSys mstat
All off-heap metrics are returned by MemStats except this one so let's add it to have a better global picture of off-heap memory use. Signed-off-by: Mahe Tardy <[email protected]>
1 parent 51efca2 commit 0463c1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

agent/agent.go

+1
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ func handle(conn io.ReadWriter, msg []byte) error {
233233
fmt.Fprintf(conn, "mspan-sys: %v\n", formatBytes(s.MSpanSys))
234234
fmt.Fprintf(conn, "mcache-in-use: %v\n", formatBytes(s.MCacheInuse))
235235
fmt.Fprintf(conn, "mcache-sys: %v\n", formatBytes(s.MCacheSys))
236+
fmt.Fprintf(conn, "buck-hash-sys: %v\n", formatBytes(s.BuckHashSys))
236237
fmt.Fprintf(conn, "other-sys: %v\n", formatBytes(s.OtherSys))
237238
fmt.Fprintf(conn, "gc-sys: %v\n", formatBytes(s.GCSys))
238239
fmt.Fprintf(conn, "next-gc: when heap-alloc >= %v\n", formatBytes(s.NextGC))

0 commit comments

Comments
 (0)