@@ -203,7 +203,7 @@ func sizeClassesLayout(samples []metrics.Sample) Heatmap {
203203}
204204
205205func gcPausesLayout (samples []metrics.Sample ) Heatmap {
206- idxgcpauses := metricIdx ["/gc /pauses:seconds" ]
206+ idxgcpauses := metricIdx ["/sched /pauses/total/gc :seconds" ]
207207
208208 gcpauses := samples [idxgcpauses ].Value .Float64Histogram ()
209209 histfactor := downsampleFactor (len (gcpauses .Buckets ), maxBuckets )
@@ -439,7 +439,7 @@ var cpuScavengerLayout = Scatter{
439439 Layout : ScatterLayout {
440440 BarMode : "stack" ,
441441 Yaxis : ScatterYAxis {
442- Title : "cpu-seconds per seconds " ,
442+ Title : "cpu-seconds / second " ,
443443 TickSuffix : "s" ,
444444 },
445445 },
@@ -470,7 +470,7 @@ var cpuOverallLayout = Scatter{
470470 Layout : ScatterLayout {
471471 BarMode : "stack" ,
472472 Yaxis : ScatterYAxis {
473- Title : "cpu-seconds per seconds " ,
473+ Title : "cpu-seconds / second " ,
474474 TickSuffix : "s" ,
475475 },
476476 },
@@ -518,7 +518,7 @@ var mutexWaitLayout = Scatter{
518518 Events : "lastgc" ,
519519 Layout : ScatterLayout {
520520 Yaxis : ScatterYAxis {
521- Title : "seconds per seconds " ,
521+ Title : "seconds / second " ,
522522 TickSuffix : "s" ,
523523 },
524524 },
@@ -572,3 +572,29 @@ This plot shows the amount of memory that is scannable by the GC.
572572<i>scanned stack</i> is <b>/gc/scan/stack</b>, the number of bytes of stack that were scanned last GC cycle.
573573` ,
574574}
575+
576+ var allocFreeRatesLayout = Scatter {
577+ Name : "heap alloc/free rates" ,
578+ Title : "Heap Allocation & Free Rates" ,
579+ Type : "scatter" ,
580+ Layout : ScatterLayout {
581+ Yaxis : ScatterYAxis {
582+ Title : "objects / second" ,
583+ },
584+ },
585+ Subplots : []Subplot {
586+ {
587+ Name : "allocs/sec" ,
588+ Unitfmt : "%{y:.4s}" ,
589+ Color : RGBString (66 , 133 , 244 ),
590+ },
591+ {
592+ Name : "frees/sec" ,
593+ Unitfmt : "%{y:.4s}" ,
594+ Color : RGBString (219 , 68 , 55 ),
595+ },
596+ },
597+ InfoText : `
598+ <i>Allocations per second</i> is derived by differencing the cumulative <b>/gc/heap/allocs:objects</b> metric.
599+ <i>Frees per second</i> is similarly derived from <b>/gc/heap/frees:objects</b>.` ,
600+ }
0 commit comments