diff options
author | Felix Lange <fjl@twurst.com> | 2016-04-13 19:05:29 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-04-13 19:05:29 +0800 |
commit | e50e3bea495d96de9e67d4e9ab6fd9a9de7ba551 (patch) | |
tree | 37f57b694f59b2de2541e69a96ae80edfaa4e263 /rpc | |
parent | b34b130fb5f8de8bc875c4ddadff044a41c074b4 (diff) | |
parent | bea56d84e53c255febaad5cb26d30122d87d02d9 (diff) | |
download | go-tangerine-e50e3bea495d96de9e67d4e9ab6fd9a9de7ba551.tar go-tangerine-e50e3bea495d96de9e67d4e9ab6fd9a9de7ba551.tar.gz go-tangerine-e50e3bea495d96de9e67d4e9ab6fd9a9de7ba551.tar.bz2 go-tangerine-e50e3bea495d96de9e67d4e9ab6fd9a9de7ba551.tar.lz go-tangerine-e50e3bea495d96de9e67d4e9ab6fd9a9de7ba551.tar.xz go-tangerine-e50e3bea495d96de9e67d4e9ab6fd9a9de7ba551.tar.zst go-tangerine-e50e3bea495d96de9e67d4e9ab6fd9a9de7ba551.zip |
Merge pull request #2235 from fjl/chaindb-api-and-console-fixes
eth: add chaindbProperty to debug API (+ console fixes)
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/javascript.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rpc/javascript.go b/rpc/javascript.go index d6ffcdf22..475691a87 100644 --- a/rpc/javascript.go +++ b/rpc/javascript.go @@ -296,6 +296,12 @@ web3._extend({ params: 1 }), new web3._extend.Method({ + name: 'chaindbProperty', + call: 'debug_chaindbProperty', + params: 1, + outputFormatter: console.log + }), + new web3._extend.Method({ name: 'metrics', call: 'debug_metrics', params: 1 @@ -322,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 |