mirror of
https://github.com/seigler/dash-docs
synced 2025-07-28 10:16:15 +00:00
RPC - Add getmemoryinfo mode parameter
This commit is contained in:
parent
f527344b13
commit
c4ff2c744f
1 changed files with 16 additions and 8 deletions
|
@ -17,7 +17,16 @@ http://opensource.org/licenses/MIT.
|
||||||
|
|
||||||
The `getmemoryinfo` RPC {{summary_getMemoryInfo}}
|
The `getmemoryinfo` RPC {{summary_getMemoryInfo}}
|
||||||
|
|
||||||
*Parameters: none*
|
*Parameter #1---mode*
|
||||||
|
|
||||||
|
{% itemplate ntpd1 %}
|
||||||
|
- n: "mode"
|
||||||
|
t: "string"
|
||||||
|
p: "Optional<br>Default: `stats`"
|
||||||
|
d: "*Added in Dash Core 0.14.1*<br><br>Determines what kind of information is returned.<br>
|
||||||
|
- `stats` returns general statistics about memory usage in the daemon.<br>
|
||||||
|
- `mallocinfo` returns an XML string describing low-level heap state (only available if compiled with glibc 2.10+)."
|
||||||
|
{% enditemplate %}
|
||||||
|
|
||||||
*Result---information about memory usage*
|
*Result---information about memory usage*
|
||||||
|
|
||||||
|
@ -75,15 +84,14 @@ Result:
|
||||||
{% highlight json %}
|
{% highlight json %}
|
||||||
{
|
{
|
||||||
"locked": {
|
"locked": {
|
||||||
"used": 32,
|
"used": 1146240,
|
||||||
"free": 65504,
|
"free": 426624,
|
||||||
"total": 65536,
|
"total": 1572864,
|
||||||
"locked": 65536,
|
"locked": 1572864,
|
||||||
"chunks_used": 1,
|
"chunks_used": 16368,
|
||||||
"chunks_free": 1
|
"chunks_free": 7
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
*See also*
|
*See also*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue