Returns an estimate of the total memory usage of data allocated by the arena.
| 31 | // Returns an estimate of the total memory usage of data allocated |
| 32 | // by the arena. |
| 33 | size_t MemoryUsage() const { |
| 34 | return memory_usage_.load(std::memory_order_relaxed); |
| 35 | } |
| 36 | |
| 37 | private: |
| 38 | char* AllocateFallback(size_t bytes); |