github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_debug.html (about)

     1  <div class="colstack_item colstack_head">
     2  	<div class="rowitem"><h1>{{lang "panel_debug_head"}}</h1></div>
     3  </div>{{flush}}
     4  <div id="panel_debug"class="colstack_grid">
     5  	{{template "panel_debug_stat_head.html" "panel_debug_uptime_label"}}
     6  	{{template "panel_debug_stat_head.html" "panel_debug_go_version_label"}}
     7  	{{template "panel_debug_stat_head.html" "panel_debug_database_version_label"}}
     8  	{{template "panel_debug_stat.html" .Uptime}}
     9  	{{template "panel_debug_stat.html" .GoVersion}}
    10  	{{template "panel_debug_stat.html" .DBVersion}}
    11  	
    12  	{{template "panel_debug_stat_head.html" "panel_debug_open_database_connections_label"}}
    13  	{{template "panel_debug_stat_head.html" "panel_debug_adapter_label"}}
    14  	{{/** TODO: Use this for active database connections when Go 1.11 lands **/}}
    15  	{{template "panel_debug_stat_head_q.html"}}
    16  	{{template "panel_debug_stat.html" .DBConns}}
    17  	{{template "panel_debug_stat.html" .DBAdapter}}
    18  	{{template "panel_debug_stat_q.html"}}
    19  
    20  	{{template "panel_debug_stat_head.html" "panel_debug_goroutine_count_label"}}
    21  	{{template "panel_debug_stat_head.html" "panel_debug_cpu_count_label"}}
    22  	{{template "panel_debug_stat_head.html" "panel_debug_http_conns_label"}}
    23  	{{template "panel_debug_stat.html" .Goroutines}}
    24  	{{template "panel_debug_stat.html" .CPUs}}
    25  	{{template "panel_debug_stat.html" .HttpConns}}
    26  </div>
    27  {{template "panel_debug_subhead.html" "panel_debug_tasks"}}
    28  <div id="panel_debug"class="colstack_grid">
    29  	{{template "panel_debug_stat_head.html" "panel_debug_tasks_half_second"}}
    30  	{{template "panel_debug_stat_head.html" "panel_debug_tasks_second"}}
    31  	{{template "panel_debug_stat_head.html" "panel_debug_tasks_fifteen_minute"}}
    32  	{{template "panel_debug_stat.html" .Tasks.HalfSecond}}
    33  	{{template "panel_debug_stat.html" .Tasks.Second}}
    34  	{{template "panel_debug_stat.html" .Tasks.FifteenMinute}}
    35  	
    36  	{{template "panel_debug_stat_head.html" "panel_debug_tasks_hour"}}
    37  	{{template "panel_debug_stat_head.html" "panel_debug_tasks_shutdown"}}
    38  	{{template "panel_debug_stat_head_q.html"}}
    39  	{{template "panel_debug_stat.html" .Tasks.Hour}}
    40  	{{template "panel_debug_stat.html" .Tasks.Shutdown}}
    41  	{{template "panel_debug_stat_q.html"}}
    42  </div>
    43  {{template "panel_debug_subhead.html" "panel_debug_memory_stats"}}
    44  <div id="panel_debug"class="colstack_grid">
    45  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_sys"}}
    46  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapsys"}}
    47  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapalloc"}}
    48  	<div class="grid_item grid_stat"><span>{{.MemStats.Sys}} ({{bunit .MemStats.Sys}})</span></div>
    49  	<div class="grid_item grid_stat"><span>{{.MemStats.HeapSys}} ({{bunit .MemStats.HeapSys}})</span></div>
    50  	<div class="grid_item grid_stat"><span>{{.MemStats.HeapAlloc}} ({{bunit .MemStats.HeapAlloc}})</span></div>
    51  
    52  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapidle"}}
    53  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_heapobjects"}}
    54  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_stackinuse"}}
    55  	<div class="grid_item grid_stat"><span>{{.MemStats.HeapIdle}} ({{bunit .MemStats.HeapIdle}})</span></div>
    56  	<div class="grid_item grid_stat"><span>{{.MemStats.HeapObjects}}</span></div>
    57  	<div class="grid_item grid_stat"><span>{{.MemStats.StackInuse}} ({{bunit .MemStats.StackInuse}})</span></div>
    58  
    59  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_mspaninuse"}}
    60  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_mcacheinuse"}}
    61  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_mspansys"}}
    62  	<div class="grid_item grid_stat"><span>{{.MemStats.MSpanInuse}} ({{bunit .MemStats.MSpanInuse}})</span></div>
    63  	<div class="grid_item grid_stat"><span>{{.MemStats.MCacheInuse}} ({{bunit .MemStats.MCacheInuse}})</span></div>
    64  	<div class="grid_item grid_stat"><span>{{.MemStats.MSpanSys}} ({{bunit .MemStats.MSpanSys}})</span></div>
    65  
    66  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_mcachesys"}}
    67  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_gcsys"}}
    68  	{{template "panel_debug_stat_head.html" "panel_debug_memory_stats_othersys"}}
    69  	<div class="grid_item grid_stat"><span>{{.MemStats.MCacheSys}} ({{bunit .MemStats.MCacheSys}})</span></div>
    70  	<div class="grid_item grid_stat"><span>{{.MemStats.GCSys}} ({{bunit .MemStats.GCSys}})</span></div>
    71  	<div class="grid_item grid_stat"><span>{{.MemStats.OtherSys}} ({{bunit .MemStats.OtherSys}})</span></div>
    72  </div>
    73  {{template "panel_debug_subhead.html" "panel_debug_caches"}}
    74  <div id="panel_debug"class="colstack_grid">
    75  	{{template "panel_debug_stat_head.html" "panel_debug_caches_topic"}}
    76  	{{template "panel_debug_stat_head.html" "panel_debug_caches_user"}}
    77  	{{template "panel_debug_stat_head.html" "panel_debug_caches_reply"}}
    78  	<div class="grid_item grid_stat"><span>{{.Cache.Topics}} / {{.Cache.TCap}}</span></div>
    79  	<div class="grid_item grid_stat"><span>{{.Cache.Users}} / {{.Cache.UCap}}</span></div>
    80  	<div class="grid_item grid_stat"><span>{{.Cache.Replies}} / {{.Cache.RCap}}</span></div>
    81  
    82  	{{template "panel_debug_stat_head.html" "panel_debug_caches_topic_list"}}
    83  	{{template "panel_debug_stat_head_q.html"}}
    84  	{{template "panel_debug_stat_head_q.html"}}
    85  	<div class="grid_item grid_stat"><span>{{if .Cache.TopicListThaw}}Thawed{{else}}Sleeping{{end}}</span></div>
    86  	{{template "panel_debug_stat_q.html"}}
    87  	{{template "panel_debug_stat_q.html"}}
    88  </div>
    89  {{template "panel_debug_subhead.html" "panel_debug_database"}}
    90  <div id="panel_debug"class="colstack_grid">
    91  	{{template "panel_debug_stat_head.html" "panel_debug_database_topics"}}
    92  	{{template "panel_debug_stat_head.html" "panel_debug_database_users"}}
    93  	{{template "panel_debug_stat_head.html" "panel_debug_database_replies"}}
    94  	{{template "panel_debug_stat.html" .Database.Topics}}
    95  	{{template "panel_debug_stat.html" .Database.Users}}
    96  	{{template "panel_debug_stat.html" .Database.Replies}}
    97  
    98  	{{template "panel_debug_stat_head.html" "panel_debug_database_profile_replies"}}
    99  	{{template "panel_debug_stat_head.html" "panel_debug_database_activity_stream"}}
   100  	{{template "panel_debug_stat_head.html" "panel_debug_database_likes"}}
   101  	{{template "panel_debug_stat.html" .Database.ProfileReplies}}
   102  	{{template "panel_debug_stat.html" .Database.ActivityStream}}
   103  	{{template "panel_debug_stat.html" .Database.Likes}}
   104  
   105  	{{template "panel_debug_stat_head.html" "panel_debug_database_attachments"}}
   106  	{{template "panel_debug_stat_head.html" "panel_debug_database_polls"}}
   107  	{{template "panel_debug_stat_head_q.html"}}
   108  	{{template "panel_debug_stat.html" .Database.Attachments}}
   109  	{{template "panel_debug_stat.html" .Database.Polls}}
   110  	{{template "panel_debug_stat_q.html"}}
   111  
   112  	{{template "panel_debug_stat_head.html" "panel_debug_database_login_logs"}}
   113  	{{template "panel_debug_stat_head.html" "panel_debug_database_reg_logs"}}
   114  	{{template "panel_debug_stat_head.html" "panel_debug_database_mod_logs"}}
   115  	{{template "panel_debug_stat.html" .Database.LoginLogs}}
   116  	{{template "panel_debug_stat.html" .Database.RegLogs}}
   117  	{{template "panel_debug_stat.html" .Database.ModLogs}}
   118  
   119  	{{template "panel_debug_stat_head.html" "panel_debug_database_admin_logs"}}
   120  	{{template "panel_debug_stat_head_q.html"}}
   121  	{{template "panel_debug_stat_head_q.html"}}
   122  	{{template "panel_debug_stat.html" .Database.AdminLogs}}
   123  	{{template "panel_debug_stat_q.html"}}
   124  	{{template "panel_debug_stat_q.html"}}
   125  
   126  	{{template "panel_debug_stat_head.html" "panel_debug_database_views"}}
   127  	{{template "panel_debug_stat_head.html" "panel_debug_database_views_agents"}}
   128  	{{template "panel_debug_stat_head.html" "panel_debug_database_views_forums"}}
   129  	{{template "panel_debug_stat.html" .Database.Views}}
   130  	{{template "panel_debug_stat.html" .Database.ViewsAgents}}
   131  	{{template "panel_debug_stat.html" .Database.ViewsForums}}
   132  
   133  	{{template "panel_debug_stat_head.html" "panel_debug_database_views_langs"}}
   134  	{{template "panel_debug_stat_head.html" "panel_debug_database_views_referrers"}}
   135  	{{template "panel_debug_stat_head.html" "panel_debug_database_views_systems"}}
   136  	{{template "panel_debug_stat.html" .Database.ViewsLangs}}
   137  	{{template "panel_debug_stat.html" .Database.ViewsReferrers}}
   138  	{{template "panel_debug_stat.html" .Database.ViewsSystems}}
   139  
   140  	{{template "panel_debug_stat_head.html" "panel_debug_database_post_analytics"}}
   141  	{{template "panel_debug_stat_head.html" "panel_debug_database_topic_analytics"}}
   142  	{{template "panel_debug_stat_head_q.html"}}
   143  	{{template "panel_debug_stat.html" .Database.PostChunks}}
   144  	{{template "panel_debug_stat.html" .Database.TopicChunks}}
   145  	{{template "panel_debug_stat_q.html"}}
   146  </div>
   147  {{template "panel_debug_subhead.html" "panel_debug_disk"}}
   148  <div id="panel_debug"class="colstack_grid">
   149  	{{template "panel_debug_stat_head.html" "panel_debug_disk_static_files"}}
   150  	{{template "panel_debug_stat_head.html" "panel_debug_disk_attachments"}}
   151  	{{template "panel_debug_stat_head.html" "panel_debug_disk_avatars"}}
   152  	<div class="grid_item grid_stat"><span>{{bunit .Disk.Static}}</span></div>
   153  	<div class="grid_item grid_stat"><span>{{bunit .Disk.Attachments}}</span></div>
   154  	<div class="grid_item grid_stat"><span>{{bunit .Disk.Avatars}}</span></div>
   155  
   156  	{{template "panel_debug_stat_head.html" "panel_debug_disk_log_files"}}
   157  	{{template "panel_debug_stat_head.html" "panel_debug_disk_backups"}}
   158  	{{template "panel_debug_stat_head.html" "panel_debug_disk_git"}}
   159  	<div class="grid_item grid_stat"><span>{{bunit .Disk.Logs}}</span></div>
   160  	<div class="grid_item grid_stat"><span>{{bunit .Disk.Backups}}</span></div>
   161  	<div class="grid_item grid_stat"><span>{{bunit .Disk.Git}}</span></div>
   162  </div>{{flush}}