Skip to content

Commit

Permalink
agent: add the off-heap BuckHashSys mstat
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mtardy committed Nov 4, 2024
1 parent d9f635e commit 77401d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ func handle(conn io.ReadWriter, msg []byte) error {
fmt.Fprintf(conn, "mspan-sys: %v\n", formatBytes(s.MSpanSys))
fmt.Fprintf(conn, "mcache-in-use: %v\n", formatBytes(s.MCacheInuse))
fmt.Fprintf(conn, "mcache-sys: %v\n", formatBytes(s.MCacheSys))
fmt.Fprintf(conn, "buck-hash-sys: %v\n", formatBytes(s.BuckHashSys))
fmt.Fprintf(conn, "other-sys: %v\n", formatBytes(s.OtherSys))
fmt.Fprintf(conn, "gc-sys: %v\n", formatBytes(s.GCSys))
fmt.Fprintf(conn, "next-gc: when heap-alloc >= %v\n", formatBytes(s.NextGC))
Expand Down

0 comments on commit 77401d0

Please sign in to comment.