Skip to content

Commit

Permalink
utilroutes use relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
bughou committed Nov 4, 2021
1 parent 2b4497a commit c903f97
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions utilroutes/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,31 @@ th,td { padding: 5px 10px; border: 1px dashed gray; }
</tr>
<tr>
<td><a href=/_debug/reqs>requests</a></td>
<td><a href=../caches> pgcache </a></td>
<td></td>
<td>PostgreSQL caches.</td>
</tr>
<tr>
<td><a href=./reqs>requests</a></td>
<td align=right>{{ .ReqCount }}</td>
<td>Requests in processing.</td>
</tr>
<tr>
<td><a href=/_debug/cpu>cpu</a></td>
<td><a href=./cpu>cpu</a></td>
<td></td>
<td> CPU profile. You can specify the duration in the "seconds" GET parameter. After you get the profile file, use the "go tool pprof" command to investigate the profile. </td>
</tr>
{{range .Profiles}}
<tr>
<td><a href="/_debug/{{.Name}}?debug=1">{{.Name}}</a></td>
<td><a href="./{{.Name}}?debug=1">{{.Name}}</a></td>
<td align=right>{{.Count}}</td>
<td>{{ index $.Descs .Name }}</td>
</tr>
{{end}}
<tr>
<td><a href=/_debug/trace>trace</a></td>
<td><a href=./trace>trace</a></td>
<td></td>
<td> A trace of execution of the current program. You can specify the duration in the "seconds" GET parameter. After you get the trace file, use the "go tool trace" command to investigate the trace. </td>
</tr>
Expand Down

0 comments on commit c903f97

Please sign in to comment.