diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-09-18 10:22:30 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-10-27 13:17:26 +0200 |
commit | 65679990967c0fa4fc0320907d9cd33c801faf5a (patch) | |
tree | 79d56f6c8ac32fffda84e49c16a87216b15f618c /src/bench/lockedpool.cpp | |
parent | 4536148b15595229d0563fb60913b23cb78788ed (diff) |
rpc: Add `getmemoryinfo` call
```
getmemoryinfo
Returns an object containing information about memory usage.
Result:
{
"locked": { (json object) Information about locked memory manager
"used": xxxxx, (numeric) Number of bytes used
"free": xxxxx, (numeric) Number of bytes available in current arenas
"total": xxxxxxx, (numeric) Total number of bytes managed
"locked": xxxxxx, (numeric) Amount of bytes that succeeded locking. If this number is smaller than total, locking pages failed at some point and key data could be swapped to disk.
}
}
Examples:
> bitcoin-cli getmemoryinfo
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
```
Diffstat (limited to 'src/bench/lockedpool.cpp')
0 files changed, 0 insertions, 0 deletions