Skip to content

Commit 5925f47

Browse files
committed
as per delvh
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 2b523f1 commit 5925f47

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

options/locale/locale_en-US.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2972,8 +2972,10 @@ monitor.pprof.fgprof.format = Format
29722972
29732973
monitor.pprof.named_profiles = Named Profiles
29742974
monitor.pprof.named_profiles.name = Name
2975-
monitor.pprof.named_profiles.debug = Debug level
2976-
monitor.pprof.named_profiles.debug_placeholder = e.g. 0
2975+
monitor.pprof.named_profiles.debug = Format
2976+
monitor.pprof.named_profiles.format_pprof = pprof
2977+
monitor.pprof.named_profiles.format_text = text
2978+
monitor.pprof.named_profiles.format_goroutine = custom/goroutine
29772979
29782980
monitor.pprof.stacktrace.flat = Do not nest processes under their parents
29792981
monitor.pprof.stacktrace.no-system = Do not include go-routines associated with system processes

templates/admin/pprof.tmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@
7777
</div>
7878
<div class="field">
7979
<label for="pprof-named_profiles-debug">{{$.locale.Tr "admin.monitor.pprof.named_profiles.debug"}}</label>
80-
<input id="pprof-named_profiles-debug" type="text" name="debug" placeholder="{{$.locale.Tr "admin.monitor.pprof.named_profiles.debug_placeholder"}}">
80+
<select class="ui search dropdown" id="pprof-named_profiles-debug" name="format">
81+
<option value="0" selected>{{.locale.Tr "admin.monitor.pprof.named_profiles.format_pprof"}}</option>
82+
<option value="1">{{.locale.Tr "admin.monitor.pprof.named_profiles.format_text"}}</option>
83+
<option value="2">{{.locale.Tr "admin.monitor.pprof.named_profiles.format_goroutine"}}</option>
84+
</select>
8185
</div>
8286
<input class="ui button basic" type="submit" value="{{$.locale.Tr "admin.monitor.pprof.download"}}">
8387
</div>

0 commit comments

Comments
 (0)