mirror of
https://github.com/golang/go
synced 2024-11-05 12:06:15 -07:00
runtime: report GCSys and OtherSys in heap profile
The comment block at the end of the heap profile includes *almost* everything from MemStats. Add the missing fields. These are useful for debugging RSS that has gone to GC-internal data structures. Change-Id: I0ee8a918d49629e28fd8fd2bf6861c4529461c24 Reviewed-on: https://go-review.googlesource.com/29276 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rick Hudson <rlh@golang.org>
This commit is contained in:
parent
38cd79889e
commit
39ce6eb9ec
@ -540,6 +540,8 @@ func writeHeap(w io.Writer, debug int) error {
|
||||
fmt.Fprintf(w, "# MSpan = %d / %d\n", s.MSpanInuse, s.MSpanSys)
|
||||
fmt.Fprintf(w, "# MCache = %d / %d\n", s.MCacheInuse, s.MCacheSys)
|
||||
fmt.Fprintf(w, "# BuckHashSys = %d\n", s.BuckHashSys)
|
||||
fmt.Fprintf(w, "# GCSys = %d\n", s.GCSys)
|
||||
fmt.Fprintf(w, "# OtherSys = %d\n", s.OtherSys)
|
||||
|
||||
fmt.Fprintf(w, "# NextGC = %d\n", s.NextGC)
|
||||
fmt.Fprintf(w, "# PauseNs = %d\n", s.PauseNs)
|
||||
|
Loading…
Reference in New Issue
Block a user