Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thestinger/22174e845019930a9f4bae5a02e4d57b to your computer and use it in GitHub Desktop.
Save thestinger/22174e845019930a9f4bae5a02e4d57b to your computer and use it in GitHub Desktop.
% adb shell /data/local/tmp/malloc_info | xmllint --format -
<?xml version="1.0"?>
<malloc version="jemalloc-1">
<heap nr="0">
<allocated-large>0</allocated-large>
<allocated-huge>0</allocated-huge>
<allocated-bins>21840</allocated-bins>
<bin nr="1">
<allocated>16</allocated>
<nmalloc>1</nmalloc>
<ndalloc>0</ndalloc>
</bin>
<bin nr="2">
<allocated>128</allocated>
<nmalloc>5</nmalloc>
<ndalloc>1</ndalloc>
</bin>
<bin nr="3">
<allocated>192</allocated>
<nmalloc>4</nmalloc>
<ndalloc>0</ndalloc>
</bin>
<bin nr="28">
<allocated>16384</allocated>
<nmalloc>4</nmalloc>
<ndalloc>0</ndalloc>
</bin>
<bin nr="29">
<allocated>5120</allocated>
<nmalloc>1</nmalloc>
<ndalloc>0</ndalloc>
</bin>
<bins-total>21840</bins-total>
</heap>
<heap nr="1">
<allocated-large>0</allocated-large>
<allocated-huge>4294967296</allocated-huge>
<allocated-bins>0</allocated-bins>
<bins-total>0</bins-total>
</heap>
</malloc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment