Get total memory currently allocated by an Arena allocator
authorJonathan Coens <jcoens@fb.com>
Wed, 19 Sep 2012 23:20:01 +0000 (16:20 -0700)
committerJordan DeLong <jdelong@fb.com>
Fri, 12 Oct 2012 04:33:54 +0000 (21:33 -0700)
commit32801ac22b38181b28839317fcb99e83aa9933b1
treed5d83401a2e5289de5b25493c54a7dcf4aa2f7b7
parent49ccc34faf0fed773411c344c1ccaa32a64e2d24
Get total memory currently allocated by an Arena allocator

Summary: The Arena allocator knows how much memory it's using up, so create a function that allows clients to figure out how much it's using. Also create a unit test to sanity check this stuff.

Test Plan: folly/test/ArenaTest.cpp

Reviewed By: tudorb@fb.com

FB internal diff: D579399
folly/Arena-inl.h
folly/Arena.h
folly/test/ArenaTest.cpp [new file with mode: 0644]