]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: fix units of MaxRSS on Linux
authorAustin Clements <austin@google.com>
Wed, 29 Apr 2020 19:06:21 +0000 (15:06 -0400)
committerAustin Clements <austin@google.com>
Wed, 29 Apr 2020 20:33:31 +0000 (20:33 +0000)
commit197a2a3799cebd91ec623616c6b5fac850955b58
tree649cc087db59a0557b1db367d73ced96e5adc62c
parent45cd312394ebbcdce956952f0e269a82d89e6639
runtime/pprof: fix units of MaxRSS on Linux

Rusage.Maxrss is in bytes on Darwin but in KiB on Linux. Fix this
discrepancy so it's always in bytes.

Change-Id: Ic714abc3276566b8fe5e30565072092212610854
Reviewed-on: https://go-review.googlesource.com/c/go/+/230979
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/runtime/pprof/pprof_rusage.go