]> Cypherpunks repositories - gostls13.git/commit
net/http/pprof: accept fractional seconds in trace handler
authorRuss Cox <rsc@golang.org>
Sun, 3 Apr 2016 16:52:12 +0000 (12:52 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 11 Apr 2016 14:29:10 +0000 (14:29 +0000)
commitb0eeb8b0aaaf4997c25e3048bfc40e53d556a8eb
tree992b1bda4c7667b7510e959c3a4a7c260593b768
parent720c4c016c75d37d14e0621696127819c8a73b0b
net/http/pprof: accept fractional seconds in trace handler

For heavily loaded servers, even 1 second of trace is too large
to process with the trace viewer; using a float64 here allows
fetching /debug/pprof/trace?seconds=0.1.

Change-Id: I286c07abf04f9c1fe594b0e26799bf37f5c734db
Reviewed-on: https://go-review.googlesource.com/21455
Reviewed-by: Austin Clements <austin@google.com>
src/net/http/pprof/pprof.go