Add bytesUsed() to folly::Arena
authorSergey Doroshenko <sdoroshenko@fb.com>
Wed, 21 Nov 2012 03:16:12 +0000 (19:16 -0800)
committerJordan DeLong <jdelong@fb.com>
Sun, 16 Dec 2012 22:45:42 +0000 (14:45 -0800)
commit817e76cb1174acab8ee1b2a30c1b3120fc1447b9
tree16c05a706db3664a781b8d4a6d96b7235409cb8f
parent4b1e7193783d8d643f01058692314ee1da1ef611
Add bytesUsed() to folly::Arena

Summary:
Returns number of bytes "really used by the user", i.e. number of bytes
allocated on the arena via calls to `allocate()`.

Test Plan: compiled, unit tests

Reviewed By: azzolini@fb.com

FB internal diff: D636976
folly/Arena.h
folly/test/ArenaTest.cpp