cmd/geth, rpc/api: extend metrics API, add a basic monitor command

This commit is contained in:
Péter Szilágyi
2015-06-24 14:38:58 +03:00
parent bde2ff0343
commit e5b820c47b
6 changed files with 338 additions and 32 deletions

View File

@ -46,15 +46,17 @@ web3._extend({
params: 1,
inputFormatter: [web3._extend.formatters.formatInputInt],
outputFormatter: function(obj) { return obj; }
}),
new web3._extend.Method({
name: 'metrics',
call: 'debug_metrics',
params: 1,
inputFormatter: [web3._extend.formatters.formatInputBool],
outputFormatter: function(obj) { return obj; }
})
],
properties:
[
new web3._extend.Property({
name: 'metrics',
getter: 'debug_metrics',
outputFormatter: function(obj) { return obj; }
})
]
});
`