]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: use new profile format for block/mutex profiles
authorHana (Hyang-Ah) Kim <hyangah@gmail.com>
Mon, 18 Sep 2017 17:54:21 +0000 (13:54 -0400)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Fri, 3 Nov 2017 18:43:17 +0000 (18:43 +0000)
commitf99d14e0de86bc387aef366eef122bd49086ac8c
treea0c5603cd25852e2bf790e4048f66bccbdd10691
parent14f2bfd369cf3e85346130996db058620d656385
runtime/pprof: use new profile format for block/mutex profiles

Unlike the legacy text format that outputs the count and the number of
cycles, the pprof tool expects contention profiles to include the count
and the delay time measured in nanoseconds. printCountCycleProfile
performs the conversion from cycles to nanoseconds.
(See parseContention function in
 cmd/vendor/github.com/google/pprof/profile/legacy_profile.go)

Fixes #21474

Change-Id: I8e8fb6ea803822d7eaaf9ecf1df3e236ad225a7b
Reviewed-on: https://go-review.googlesource.com/64410
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/pprof/pprof.go
src/runtime/pprof/pprof_test.go