FAQ
Is it OK to submit now?
On 2012/09/22 03:51:57, dvyukov wrote:
PTAL
https://codereview.appspot.com/6443115/diff/37006/src/cmd/go/test.go
File src/cmd/go/test.go (right):

https://codereview.appspot.com/6443115/diff/37006/src/cmd/go/test.go#newcode120
src/cmd/go/test.go:120: spent blocked. By default all blocking events are
recorded.
On 2012/09/21 04:57:37, r wrote:
Control the detail provided in goroutine blocking profiles by
setting
runtime.BlockProfileRate to n. See 'godoc runtime BlockProfileRate'.
The profiler aims to sample, on average, one blocking event every
n nanoseconds the program (or is it a goroutine??)
It is per program.
spends blocked. By
default, if -test.blockprofile is set without this flag, all
blocking events
are recorded, equivalent to -testblockprofile=1.
Done.

https://codereview.appspot.com/6443115/diff/37006/src/pkg/runtime/debug.go
File src/pkg/runtime/debug.go (right):

https://codereview.appspot.com/6443115/diff/37006/src/pkg/runtime/debug.go#newcode142
src/pkg/runtime/debug.go:142: // that are recorded and reported in the blocking
profile.
On 2012/09/21 04:57:37, r wrote:
s/recorded and// (it's redundant)
Done.

https://codereview.appspot.com/6443115/diff/37006/src/pkg/runtime/debug.go#newcode144
src/pkg/runtime/debug.go:144: // one blocking event per
BlockProfileRate
nanoseconds spent blocked.
On 2012/09/21 04:57:37, r wrote:
what does blocked mean? is it global, goroutine, mutex, channel...?
Blocking event is when a goroutine blocks on
mutex/channel/waitgroup/etc.



http://codereview.appspot.com/6443115/

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedSep 26, '12 at 9:49p
activeSep 26, '12 at 9:49p
posts1
users1
websitegolang.org

1 user in discussion

Dvyukov: 1 post

People

Translate

site design / logo © 2022 Grokbase