Learn R Programming

gethr (version 0.1.0)

debug_setBlockProfileRate: Block profile data collection rate.

Description

debug_setBlockProfileRate sets the rate (in samples/sec) of goroutine block profile data collection.

Usage

debug_setBlockProfileRate(rate)

Arguments

rate

Integer - Rate of the profiling. A non-zero rate enables block profiling, setting it to zero stops the profile.

See Also

Other debug functions: debug_backtraceAt, debug_blockProfile, debug_cpuProfile, debug_dumpBlock, debug_gcStats, debug_getBlockRlp, debug_goTrace, debug_memStats, debug_seedHash, debug_setHead, debug_stacks, debug_startCPUProfile, debug_startGoTrace, debug_stopCPUProfile, debug_stopGoTrace, debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceBlockFromFile, debug_traceBlock, debug_traceTransaction, debug_verbosity, debug_vmodule, debug_writeBlockProfile, debug_writeMemProfile, gethr

Examples

Run this code
# NOT RUN {
debug_setBlockProfileRate(100)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab