finished up the system statistics page
This commit is contained in:
@@ -837,6 +837,15 @@ func SysStats(ctxt ui.AmContext) (string, any) {
|
||||
ctxt.VarMap().Set("memHeapIdle", humanize.IBytes(mstat.HeapIdle))
|
||||
ctxt.VarMap().Set("memHeapInuse", humanize.IBytes(mstat.HeapInuse))
|
||||
ctxt.VarMap().Set("memHeapReleased", humanize.IBytes(mstat.HeapReleased))
|
||||
ctxt.VarMap().Set("memStackInuse", humanize.IBytes(mstat.StackInuse))
|
||||
ctxt.VarMap().Set("memStackSys", humanize.IBytes(mstat.StackSys))
|
||||
ctxt.VarMap().Set("memMSpanInuse", humanize.IBytes(mstat.MSpanInuse))
|
||||
ctxt.VarMap().Set("memMSpanSys", humanize.IBytes(mstat.MSpanSys))
|
||||
ctxt.VarMap().Set("memMCacheInuse", humanize.IBytes(mstat.MCacheInuse))
|
||||
ctxt.VarMap().Set("memMCacheSys", humanize.IBytes(mstat.MCacheSys))
|
||||
ctxt.VarMap().Set("memBuckHashSys", humanize.IBytes(mstat.BuckHashSys))
|
||||
ctxt.VarMap().Set("memGCSys", humanize.IBytes(mstat.GCSys))
|
||||
ctxt.VarMap().Set("memOtherSys", humanize.IBytes(mstat.OtherSys))
|
||||
ctxt.VarMap().Set("memLastGCTime", time.Unix(0, int64(mstat.LastGC)).Format(time.RFC3339))
|
||||
ctxt.VarMap().Set("memTotalPause", fmt.Sprintf("%.3f ms", float64(mstat.PauseTotalNs)/1000/1000))
|
||||
ctxt.VarMap().Set("memGCPercent", fmt.Sprintf("%.5f%%", float64(mstat.GCCPUFraction)*100))
|
||||
|
||||
Reference in New Issue
Block a user