MCPcopy Create free account
hub / github.com/CPChain/chain / SetBlockProfileRate

Method SetBlockProfileRate

internal/debug/api.go:138–140  ·  view source on GitHub ↗

SetBlockProfileRate sets the rate of goroutine block profile data collection. rate 0 disables block profiling.

(rate int)

Source from the content-addressed store, hash-verified

136// SetBlockProfileRate sets the rate of goroutine block profile data collection.
137// rate 0 disables block profiling.
138func (*HandlerT) SetBlockProfileRate(rate int) {
139 runtime.SetBlockProfileRate(rate)
140}
141
142// WriteBlockProfile writes a goroutine blocking profile to the given file.
143func (*HandlerT) WriteBlockProfile(file string) error {

Callers 4

StartBlockingProfileMethod · 0.80
StopBlockingProfileMethod · 0.80
BlockProfileMethod · 0.80
SetupFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected