diff options
author | Felix Lange <fjl@twurst.com> | 2016-02-20 22:42:22 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-04-13 18:08:07 +0800 |
commit | bea56d84e53c255febaad5cb26d30122d87d02d9 (patch) | |
tree | 37f57b694f59b2de2541e69a96ae80edfaa4e263 /rpc | |
parent | bcd8aeefdd40174a7fb1dd320b00f090d8986f11 (diff) | |
download | go-tangerine-bea56d84e53c255febaad5cb26d30122d87d02d9.tar.gz go-tangerine-bea56d84e53c255febaad5cb26d30122d87d02d9.tar.zst go-tangerine-bea56d84e53c255febaad5cb26d30122d87d02d9.zip |
internal/debug: add memStats and gcStats to API
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/javascript.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rpc/javascript.go b/rpc/javascript.go index 166a5289c..475691a87 100644 --- a/rpc/javascript.go +++ b/rpc/javascript.go @@ -328,6 +328,16 @@ web3._extend({ 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', params: 2 |