Files
chasquid/internal/nettrace/templates/_latency.html.tmpl
Alberto Bertogli 9c6661eca2 nettrace: Add a new tracing library
This commit introduces a new tracing library, that replaces
golang.org/x/net/trace, and supports (amongts other thing) nested
traces.

This is a minimal change, future patches will make use of the new
functionality.
2022-11-13 11:09:19 +00:00

26 lines
724 B
Cheetah

<table class="latencies"><tr>
<td>Count: {{.Latencies.Count}}</td>
<td>Avg: {{.Latencies.Avg | roundDuration}}</td>
<td>Min: {{.Latencies.Min | roundDuration}}</td>
<td>Max: {{.Latencies.Max | roundDuration}}</td>
</tr></table>
<p>
<table class="latencies">
<tr><th>Bucket</th><th>Count</th><th>%</th><th></th><th>Cumulative</th></tr>
{{range .Latencies.Counts}}
<tr>
<td>
<a href="?fam={{$.Family}}&b={{.BucketIdx}}"
{{if eq .Count 0}}class="muted"{{end}}>
&ge;{{.Start}}</a>
</td>
<td>{{.Count}}</td>
<td>{{.Percent | printf "%5.2f"}}%</td>
<td><meter max="100" value="{{.Percent}}">
{{.Percent | printf "%.2f"}}%</meter>
<td>{{.CumPct | printf "%5.2f"}}%</td>
</tr>
{{end}}
</table>