memtx: add MemtxAllocator statistics
We account three metrics: - used_total - total size of allocated memory - used_rv - size of memory held for read views - used_gc - size of memory freed on demand We'll need them to report memtx read view statistics. While we are at it, switch the test to TAP and drop the result file. Needed for https://github.com/tarantool/tarantool-ee/issues/143 NO_DOC=internal NO_CHANGELOG=internal
Showing
- src/box/memtx_allocator.cc 26 additions, 2 deletionssrc/box/memtx_allocator.cc
- src/box/memtx_allocator.h 68 additions, 16 deletionssrc/box/memtx_allocator.h
- test/unit/memtx_allocator.cc 74 additions, 1 deletiontest/unit/memtx_allocator.cc
- test/unit/memtx_allocator.result 0 additions, 92 deletionstest/unit/memtx_allocator.result
Loading
Please register or sign in to comment