]> Cypherpunks repositories - gostls13.git/commit
runtime: fix SetBlockProfileRate
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 14 Aug 2013 20:20:36 +0000 (00:20 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 14 Aug 2013 20:20:36 +0000 (00:20 +0400)
commit3bd0b0a80dd78bacf814cbe51e427dac0fd231c3
tree052022bcf7a014e36e9e07072266da3f7c1b385f
parent2eb7c6ec8a34c23466e40946d0e9ea1574b0006a
runtime: fix SetBlockProfileRate
It doughtily misses all possible corner cases.
In particular on machines with <1GHz processors,
SetBlockProfileRate(1) disables profiling.
Fixes #6114.

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/12936043
src/pkg/runtime/mprof.goc