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