debug_blockProfile
turns on block profiling for the given duration and
writes profile data to disk. It uses a profile rate of 1 for most accurate
information.
debug_blockProfile(file, seconds)
String - File to write the data.
Integer - Seconds to write the data.
Other debug functions: debug_backtraceAt
,
debug_cpuProfile
,
debug_dumpBlock
,
debug_gcStats
,
debug_getBlockRlp
,
debug_goTrace
,
debug_memStats
,
debug_seedHash
,
debug_setBlockProfileRate
,
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
# NOT RUN {
debug_blockProfile('file.log', 5)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab