Skip to content

Commit 8833af3

Browse files
committed
runtime/pprof: print newly added fields of runtime.MemStats
in heap profile with debug mode Change-Id: I3a80d03a4aa556614626067a8fd698b3b00f4290 Reviewed-on: https://go-review.googlesource.com/36962 Reviewed-by: Austin Clements <[email protected]>
1 parent 35a95df commit 8833af3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/runtime/pprof/pprof.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,12 @@ func writeHeap(w io.Writer, debug int) error {
565565
fmt.Fprintf(w, "# OtherSys = %d\n", s.OtherSys)
566566

567567
fmt.Fprintf(w, "# NextGC = %d\n", s.NextGC)
568+
fmt.Fprintf(w, "# LastGC = %d\n", s.LastGC)
568569
fmt.Fprintf(w, "# PauseNs = %d\n", s.PauseNs)
570+
fmt.Fprintf(w, "# PauseEnd = %d\n", s.PauseEnd)
569571
fmt.Fprintf(w, "# NumGC = %d\n", s.NumGC)
572+
fmt.Fprintf(w, "# NumForcedGC = %d\n", s.NumForcedGC)
573+
fmt.Fprintf(w, "# GCCPUFraction = %v\n", s.GCCPUFraction)
570574
fmt.Fprintf(w, "# DebugGC = %v\n", s.DebugGC)
571575

572576
tw.Flush()

0 commit comments

Comments
 (0)