]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/pprof: pass the event to pprof_toggle_asm for the weblist command
authorAlberto Donizetti <alb.donizetti@gmail.com>
Sun, 10 Apr 2016 18:14:27 +0000 (20:14 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 12 Apr 2016 19:52:09 +0000 (19:52 +0000)
Fixes #15225

Change-Id: I1f85590b2c3293463c6476beebcd3256adc1bf23
Reviewed-on: https://go-review.googlesource.com/21802
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/internal/pprof/report/source.go

index 7beea395629fd69aba5b2207e118087e0be9f185..608e4d561df6880e692b4c72f4b3e64b1610d819 100644 (file)
@@ -257,7 +257,7 @@ func printHeader(w io.Writer, rpt *Report) {
 // printFunctionHeader prints a function header for a weblist report.
 func printFunctionHeader(w io.Writer, name, path string, flatSum, cumSum int64, rpt *Report) {
        fmt.Fprintf(w, `<h1>%s</h1>%s
-<pre onClick="pprof_toggle_asm()">
+<pre onClick="pprof_toggle_asm(event)">
   Total:  %10s %10s (flat, cum) %s
 `,
                template.HTMLEscapeString(name), template.HTMLEscapeString(path),