summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2019-08-14 16:04:01 +0000
committerKostya Kortchinsky <kostyak@google.com>2019-08-14 16:04:01 +0000
commit2be59170d433be05204992838a1aadbc79d5e0d1 (patch)
tree774e32e604fd14c092ce248c9bdab32a12c962be /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
parent7fce867856934ae09bfd3d4dac0552249e1d03f2 (diff)
downloadbcm5719-llvm-2be59170d433be05204992838a1aadbc79d5e0d1.tar.gz
bcm5719-llvm-2be59170d433be05204992838a1aadbc79d5e0d1.zip
[scudo][standalone] Add more stats to mallinfo
Summary: Android requires additional stats in mallinfo. While we can provide right away the number of bytes mapped (Primary+Secondary), there was no way to get the number of free bytes (only makes sense for the Primary since the Secondary unmaps everything on deallocation). An approximation could be `StatMapped - StatAllocated`, but since we are mapping in `1<<17` increments for the 64-bit Primary, it's fairly inaccurate. So we introduce `StatFree` (note it's `Free`, not `Freed`!), which keeps track of the amount of Primary blocks currently unallocated. Reviewers: cferris, eugenis, vitalybuka, hctim, morehouse Reviewed By: morehouse Subscribers: delcypher, #sanitizers, llvm-commits Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D66112 llvm-svn: 368866
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud