From bea56d84e53c255febaad5cb26d30122d87d02d9 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Sat, 20 Feb 2016 15:42:22 +0100 Subject: internal/debug: add memStats and gcStats to API --- rpc/javascript.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'rpc') diff --git a/rpc/javascript.go b/rpc/javascript.go index 166a5289c..475691a87 100644 --- a/rpc/javascript.go +++ b/rpc/javascript.go @@ -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', -- cgit v1.2.3