debug_blockProfile
blockProfile
方法在指定的时间段内开启区块性能检测,并将检测文件写入磁盘。
在大多数情况下,blockProfile
方法使用值为1的检测速率获取尽可能准确的信息。
如果需要一个不同的检测速率,可以使用debug_writeBlockProfile方法手动设置
检测速率并写入检测文件。
调用方法
Geth控制台:
debug.blockProfile(file, seconds)
JSON RPC:
{"method": "debug_blockProfile", "params": [string, number]}