Page MenuHomePhabricator

Add mallocinfo mode to `getmemoryinfo` RPC
ClosedPublic

Authored by deadalnix on Oct 9 2018, 11:20.

Details

Summary

This adds a mode argument to getmemoryinfo. By default the output
will remain the same. However if a mode argument of mallocinfo is
provided the result of glibc malloc_info (if available) will
be returned as a string, as-is.

This is useful for tracking heap usage over time or troubleshooting
memory fragmentation issues.

This is a backport of Core PR10038

Test Plan
make check
ninja all check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Oct 9 2018, 21:45
This revision was automatically updated to reflect the committed changes.