func doStopCDF(s *gcstats.GcStats, kdes map[gcstats.PhaseKind]*stats.KDE) { xs := jointAxis(kdes, float64(s.MaxPause())/1e9) for _, kde := range kdes { kde.Kernel = stats.DeltaKernel } plot := newPlot("pause time", xs) for kind := gcstats.PhaseSweepTerm; kind <= gcstats.PhaseMultiple; kind++ { if kde := kdes[kind]; kde != nil { plot.addSeries(kind.String(), kde.CDF) } } showPlot(plot) }