diff options
author | Aditya Mukerjee <dev@chimeracoder.net> | 2018-04-19 12:24:53 -0400 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2018-04-19 17:03:45 +0000 |
commit | 3d8940a9ee791089ad6417b35d9e70ed2bfc7258 (patch) | |
tree | 741822618b909b181798e461b685a8a0c5f1fd5e /src/runtime/mprof.go | |
parent | 34f5f8a580d4723e0094c8546724548abe65f893 (diff) | |
download | go-3d8940a9ee791089ad6417b35d9e70ed2bfc7258.tar.gz go-3d8940a9ee791089ad6417b35d9e70ed2bfc7258.zip |
runtime: specify behavior of SetMutexProfileFraction for negative values
Change-Id: Ie4da1a515d5405140d742bdcd55f54a73a7f71fe
Reviewed-on: https://go-review.googlesource.com/108175
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/mprof.go')
-rw-r--r-- | src/runtime/mprof.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mprof.go b/src/runtime/mprof.go index 259473c9ce..0455fe86ac 100644 --- a/src/runtime/mprof.go +++ b/src/runtime/mprof.go @@ -434,7 +434,7 @@ var mutexprofilerate uint64 // fraction sampled // reported. The previous rate is returned. // // To turn off profiling entirely, pass rate 0. -// To just read the current rate, pass rate -1. +// To just read the current rate, pass rate < 0. // (For n>1 the details of sampling may change.) func SetMutexProfileFraction(rate int) int { if rate < 0 { |