github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/views/vadmin/MemUsage.html (about) 1 <!-- Content managed by Project Forge, see [projectforge.md] for details. --> 2 {% import ( 3 "runtime" 4 5 "github.com/kyleu/dbaudit/app" 6 "github.com/kyleu/dbaudit/app/controller/cutil" 7 "github.com/kyleu/dbaudit/views/components" 8 "github.com/kyleu/dbaudit/views/layout" 9 ) %} 10 11 {% code type MemUsage struct { 12 layout.Basic 13 Mem *runtime.MemStats 14 } %} 15 16 {% func (p *MemUsage) Body(as *app.State, ps *cutil.PageState) %} 17 <div class="card"> 18 <h3>Memory Usage</h3> 19 <em>Better formatting is coming soon</em> 20 {%s= components.JSON(p.Mem) %} 21 </div> 22 {% endfunc %}