Commit da224a5c authored by Alberto Donizetti's avatar Alberto Donizetti Committed by Brad Fitzpatrick

cmd/pprof: pass the event to pprof_toggle_asm for the weblist command

Fixes #15225

Change-Id: I1f85590b2c3293463c6476beebcd3256adc1bf23
Reviewed-on: https://go-review.googlesource.com/21802Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 37af0636
...@@ -257,7 +257,7 @@ func printHeader(w io.Writer, rpt *Report) { ...@@ -257,7 +257,7 @@ func printHeader(w io.Writer, rpt *Report) {
// printFunctionHeader prints a function header for a weblist report. // printFunctionHeader prints a function header for a weblist report.
func printFunctionHeader(w io.Writer, name, path string, flatSum, cumSum int64, rpt *Report) { func printFunctionHeader(w io.Writer, name, path string, flatSum, cumSum int64, rpt *Report) {
fmt.Fprintf(w, `<h1>%s</h1>%s fmt.Fprintf(w, `<h1>%s</h1>%s
<pre onClick="pprof_toggle_asm()"> <pre onClick="pprof_toggle_asm(event)">
Total: %10s %10s (flat, cum) %s Total: %10s %10s (flat, cum) %s
`, `,
template.HTMLEscapeString(name), template.HTMLEscapeString(path), template.HTMLEscapeString(name), template.HTMLEscapeString(path),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment