]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof, syscall: report MaxRSS on all unix platforms
authorTobias Klauser <tklauser@distanz.ch>
Thu, 10 Mar 2022 08:28:09 +0000 (09:28 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Fri, 11 Mar 2022 06:03:26 +0000 (06:03 +0000)
commitc1f22134f22158ebeebf450357f711eb22fab202
tree4fe46483d6010f87e145a53b78c069bf641ce59c
parentfe75fe3c7ae99713ed4e452ea8a4fcb589517dd9
runtime/pprof, syscall: report MaxRSS on all unix platforms

All unix platforms currently supported by Go provide the getrusage
syscall. On aix and solaris the Getrusage syscall wrapper is not
available yet, so add and use it to report MaxRSS in memory profiles.

Change-Id: Ie880a3058171031fd2e12ccf9adfb85ce18858b1
Reviewed-on: https://go-review.googlesource.com/c/go/+/391434
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Trust: Michael Pratt <mpratt@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/pprof/pprof_norusage.go
src/runtime/pprof/pprof_rusage.go
src/runtime/pprof/rusage_test.go
src/syscall/syscall_aix.go
src/syscall/syscall_solaris.go
src/syscall/zsyscall_aix_ppc64.go
src/syscall/zsyscall_solaris_amd64.go