aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin/dashboard.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-22 07:42:24 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-22 07:42:24 -0400
commit0d1872ebe3f11c14f31f454ed8d719a22c0884d0 (patch)
tree2c79a0f4ff91dc064297f4d5bc959cbd27ed8a0a /templates/admin/dashboard.tmpl
parent7a1ff8636c01844a501dd9cdca2c436d1b7826b7 (diff)
downloadgitea-0d1872ebe3f11c14f31f454ed8d719a22c0884d0.tar.gz
gitea-0d1872ebe3f11c14f31f454ed8d719a22c0884d0.zip
Add admin memStatus panel
Diffstat (limited to 'templates/admin/dashboard.tmpl')
-rw-r--r--templates/admin/dashboard.tmpl33
1 files changed, 32 insertions, 1 deletions
diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl
index 6088487d62..0bebf8318f 100644
--- a/templates/admin/dashboard.tmpl
+++ b/templates/admin/dashboard.tmpl
@@ -15,10 +15,41 @@
<div class="panel panel-default">
<div class="panel-heading">
- System Status
+ System Monitor Status
</div>
<div class="panel-body">
+ <div>Current Goroutines: <b>{{.SysStatus.NumGoroutine}}</b></div>
+ <hr/>
+ <div>Current Memory Usage: <b>{{.SysStatus.MemAllocated}}</b></div>
+ <div>Total Memory Allocated: <b>{{.SysStatus.MemTotal}}</b></div>
+ <div>Memory Obtained: <b>{{.SysStatus.MemSys}}</b></div>
+ <div>Pointer Lookup Times: <b>{{.SysStatus.Lookups}}</b></div>
+ <div>Memory Allocate Times: <b>{{.SysStatus.MemMallocs}}</b></div>
+ <div>Memory Free Times: <b>{{.SysStatus.MemFrees}}</b></div>
+ <hr/>
+ <div>Current Heap Usage: <b>{{.SysStatus.HeapAlloc}}</b></div>
+ <div>Heap Memory Obtained: <b>{{.SysStatus.HeapSys}}</b></div>
+ <div>Heap Memory Idle: <b>{{.SysStatus.HeapIdle}}</b></div>
+ <div>Heap Memory In Use: <b>{{.SysStatus.HeapInuse}}</b></div>
+ <div>Heap Memory Released: <b>{{.SysStatus.HeapReleased}}</b></div>
+ <div>Heap Objects: <b>{{.SysStatus.HeapObjects}}</b></div>
+ <hr/>
+ <div>Bootstrap Stack Usage: <b>{{.SysStatus.StackInuse}}</b></div>
+ <div>Stack Memory Obtained: <b>{{.SysStatus.StackSys}}</b></div>
+ <div>MSpan Structures Usage: <b>{{.SysStatus.MSpanInuse}}</b></div>
+ <div>MSpan Structures Obtained: <b>{{.SysStatus.HeapSys}}</b></div>
+ <div>MCache Structures Usage: <b>{{.SysStatus.MCacheInuse}}</b></div>
+ <div>MCache Structures Obtained: <b>{{.SysStatus.MCacheSys}}</b></div>
+ <div>Profiling Bucket Hash Table Obtained: <b>{{.SysStatus.BuckHashSys}}</b></div>
+ <div>GC Metadada Obtained: <b>{{.SysStatus.GCSys}}</b></div>
+ <div>Other System Allocation Obtained: <b>{{.SysStatus.OtherSys}}</b></div>
+ <hr/>
+ <div>Next GC Recycle: <b>{{.SysStatus.NextGC}}</b></div>
+ <div>Last GC Time: <b>{{.SysStatus.LastGC}} ago</b></div>
+ <div>Total GC Pause: <b>{{.SysStatus.PauseTotalNs}}</b></div>
+ <div>Last GC Pause: <b>{{.SysStatus.PauseNs}}</b></div>
+ <div>GC Times: <b>{{.SysStatus.NumGC}}</b></div>
</div>
</div>
</div>