]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/pprof: print newly added fields of runtime.MemStats
authorHana Kim <hyangah@gmail.com>
Tue, 14 Feb 2017 21:11:35 +0000 (16:11 -0500)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Wed, 15 Feb 2017 21:14:37 +0000 (21:14 +0000)
in heap profile with debug mode

Change-Id: I3a80d03a4aa556614626067a8fd698b3b00f4290
Reviewed-on: https://go-review.googlesource.com/36962
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/pprof/pprof.go

index c88844e83724fa637f150157f9264cf5e19343c4..7dc38369e61efd1b2e4e0dc8e854ee060de60d50 100644 (file)
@@ -565,8 +565,12 @@ func writeHeap(w io.Writer, debug int) error {
        fmt.Fprintf(w, "# OtherSys = %d\n", s.OtherSys)
 
        fmt.Fprintf(w, "# NextGC = %d\n", s.NextGC)
+       fmt.Fprintf(w, "# LastGC = %d\n", s.LastGC)
        fmt.Fprintf(w, "# PauseNs = %d\n", s.PauseNs)
+       fmt.Fprintf(w, "# PauseEnd = %d\n", s.PauseEnd)
        fmt.Fprintf(w, "# NumGC = %d\n", s.NumGC)
+       fmt.Fprintf(w, "# NumForcedGC = %d\n", s.NumForcedGC)
+       fmt.Fprintf(w, "# GCCPUFraction = %v\n", s.GCCPUFraction)
        fmt.Fprintf(w, "# DebugGC = %v\n", s.DebugGC)
 
        tw.Flush()