{{lang "panel_debug_head"}}

{{flush}}
{{template "panel_debug_stat_head.html" "panel_debug_uptime_label"}} {{template "panel_debug_stat_head.html" "panel_debug_go_version_label"}} {{template "panel_debug_stat_head.html" "panel_debug_database_version_label"}} {{template "panel_debug_stat.html" .Uptime}} {{template "panel_debug_stat.html" .GoVersion}} {{template "panel_debug_stat.html" .DBVersion}} {{template "panel_debug_stat_head.html" "panel_debug_open_database_connections_label"}} {{template "panel_debug_stat_head.html" "panel_debug_adapter_label"}} {{/** TODO: Use this for active database connections when Go 1.11 lands **/}} {{template "panel_debug_stat_head_q.html"}} {{template "panel_debug_stat.html" .OpenConns}} {{template "panel_debug_stat.html" .DBAdapter}} {{template "panel_debug_stat_q.html"}} {{template "panel_debug_stat_head.html" "panel_debug_goroutine_count_label"}} {{template "panel_debug_stat_head.html" "panel_debug_cpu_count_label"}} {{template "panel_debug_stat_head_q.html"}} {{template "panel_debug_stat.html" .Goroutines}} {{template "panel_debug_stat.html" .CPUs}} {{template "panel_debug_stat_q.html"}}

{{lang "panel_debug_memory_stats"}}

{{flush}}
{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_sys"}} {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapsys"}} {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapalloc"}}
{{.MemStats.Sys}} ({{bunit .MemStats.Sys}})
{{.MemStats.HeapSys}} ({{bunit .MemStats.HeapSys}})
{{.MemStats.HeapAlloc}} ({{bunit .MemStats.HeapAlloc}})
{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapidle"}} {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapobjects"}} {{template "panel_debug_stat_head.html" "panel_debug_memory_stats_stackinuse"}}
{{.MemStats.HeapIdle}} ({{bunit .MemStats.HeapIdle}})
{{.MemStats.HeapObjects}}
{{.MemStats.StackInuse}} ({{bunit .MemStats.StackInuse}})
MSpanInuse
MCacheInuse
MSpanSys
{{.MemStats.MSpanInuse}} ({{bunit .MemStats.MSpanInuse}})
{{.MemStats.MCacheInuse}} ({{bunit .MemStats.MCacheInuse}})
{{.MemStats.MSpanSys}} ({{bunit .MemStats.MSpanSys}})
MCacheSys
GCSys
OtherSys
{{.MemStats.MCacheSys}} ({{bunit .MemStats.MCacheSys}})
{{.MemStats.GCSys}} ({{bunit .MemStats.GCSys}})
{{.MemStats.OtherSys}} ({{bunit .MemStats.OtherSys}})

{{lang "panel_debug_caches"}}

{{template "panel_debug_stat_head.html" "panel_debug_caches_topic"}} {{template "panel_debug_stat_head.html" "panel_debug_caches_user"}} {{template "panel_debug_stat_head.html" "panel_debug_caches_reply"}}
{{.Cache.Topics}} / {{.Cache.TCap}}
{{.Cache.Users}} / {{.Cache.UCap}}
{{.Cache.Replies}} / {{.Cache.RCap}}
{{template "panel_debug_stat_head.html" "panel_debug_caches_topic_list"}} {{template "panel_debug_stat_head_q.html"}} {{template "panel_debug_stat_head_q.html"}}
{{if .Cache.TopicListThaw}}Thawed{{else}}Sleeping{{end}}
{{template "panel_debug_stat_q.html"}} {{template "panel_debug_stat_q.html"}}

{{lang "panel_debug_database"}}

{{flush}}
{{template "panel_debug_stat_head.html" "panel_debug_database_topics"}} {{template "panel_debug_stat_head.html" "panel_debug_database_users"}} {{template "panel_debug_stat_head.html" "panel_debug_database_replies"}}
{{.Database.Topics}}
{{.Database.Users}}
{{.Database.Replies}}
Profile Replies
Activity Stream
Likes
{{.Database.ProfileReplies}}
{{.Database.ActivityStream}}
{{.Database.Likes}}
Attachments
Polls
{{template "panel_debug_stat_head_q.html"}}
{{.Database.Attachments}}
{{.Database.Polls}}
{{template "panel_debug_stat_q.html"}}
Login Logs
Reg Logs
Mod Logs
{{.Database.LoginLogs}}
{{.Database.RegLogs}}
{{.Database.ModLogs}}
Admin Logs
{{template "panel_debug_stat_head_q.html"}} {{template "panel_debug_stat_head_q.html"}}
{{.Database.AdminLogs}}
{{template "panel_debug_stat_q.html"}} {{template "panel_debug_stat_q.html"}}
Views
Views Agents
Views Forums
{{.Database.Views}}
{{.Database.ViewsAgents}}
{{.Database.ViewsForums}}
Views Langs
Views Referrers
Views Systems
{{.Database.ViewsLangs}}
{{.Database.ViewsReferrers}}
{{.Database.ViewsSystems}}
Post Analytics
Topic Analytics
{{template "panel_debug_stat_head_q.html"}}
{{.Database.PostChunks}}
{{.Database.TopicChunks}}
{{template "panel_debug_stat_q.html"}}

{{lang "panel_debug_disk"}}

{{flush}}
Static Files
Attachments
Avatars
{{bunit .Disk.Static}}
{{bunit .Disk.Attachments}}
{{bunit .Disk.Avatars}}
Log Files
Backups
Git
{{bunit .Disk.Logs}}
{{bunit .Disk.Backups}}
{{bunit .Disk.Git}}