]> Cypherpunks repositories - gostls13.git/commit
net/http/pprof: update the /debug/pprof endpoint
authorAgniva De Sarker <agnivade@yahoo.co.in>
Wed, 9 May 2018 07:00:43 +0000 (12:30 +0530)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Thu, 10 May 2018 15:40:01 +0000 (15:40 +0000)
commitef24fd739bcf94e3f703af324afdeefa6577dc74
treef3fb5730b922a44c5260de475b66f718a7c0be5f
parente4172e5f5e9b194ec300ddc2bd6678a8e1d34454
net/http/pprof: update the /debug/pprof endpoint

- Documented the duration parameter in Profile() to match with Trace().

- Properly handling the error from strconv.ParseInt to match with Trace().

- Updated the profiles tables to include additional handlers exposed from
net/http/pprof. Added a separate section at the bottom to explain what
the profiles are and how to use them.

Fixes #24380

Change-Id: I8b7e100d6826a4feec81f29f918e7a7f7ccc71a0
Reviewed-on: https://go-review.googlesource.com/112495
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/net/http/pprof/pprof.go
src/net/http/pprof/pprof_test.go