Commit 3d8940a9 authored by Aditya Mukerjee's avatar Aditya Mukerjee Committed by Ian Lance Taylor

runtime: specify behavior of SetMutexProfileFraction for negative values

Change-Id: Ie4da1a515d5405140d742bdcd55f54a73a7f71fe
Reviewed-on: https://go-review.googlesource.com/108175Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 34f5f8a5
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment