• Hana (Hyang-Ah) Kim's avatar
    runtime/pprof: use new profile format for block/mutex profiles · f99d14e0
    Hana (Hyang-Ah) Kim authored
    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: 's avatarRuss Cox <rsc@golang.org>
    f99d14e0
pprof.go 25.4 KB