internal/debug: add memStats and gcStats to API

This commit is contained in:
Felix Lange
2016-04-13 12:08:07 +02:00
parent bcd8aeefdd
commit bea56d84e5
2 changed files with 25 additions and 0 deletions
+10
View File
@@ -327,6 +327,16 @@ web3._extend({
params: 0,
outputFormatter: console.log
}),
new web3._extend.Method({
name: 'memStats',
call: 'debug_memStats',
params: 0,
}),
new web3._extend.Method({
name: 'gcStats',
call: 'debug_gcStats',
params: 0,
}),
new web3._extend.Method({
name: 'cpuProfile',
call: 'debug_cpuProfile',