diff --git a/v2/metric.go b/v2/metric.go index 2f35245..ad16c84 100644 --- a/v2/metric.go +++ b/v2/metric.go @@ -105,6 +105,8 @@ func printMemStats(w io.Writer, lastGC bool) { fprintf(w, "%-20s: %s (+%s)\n", "Total Allocated", formats.IECBytes(float64(memstats.Sys-memstats.HeapReleased)), formats.IECBytes(float64(memstats.HeapReleased))) + fprintf(w, "%-20s: %.07f%%\n", "GC CPU Fraction", + memstats.GCCPUFraction*100.0/float64(runtime.GOMAXPROCS(0))) if !lastGC { return }