| 243 | void TrackingAllocator::ClearStats() { allocator_->ClearStats(); } |
| 244 | |
| 245 | std::tuple<size_t, size_t, size_t> TrackingAllocator::GetSizes() { |
| 246 | size_t high_watermark; |
| 247 | size_t total_bytes; |
| 248 | size_t still_live_bytes; |
| 249 | { |
| 250 | mutex_lock lock(mu_); |
| 251 | high_watermark = high_watermark_; |
| 252 | total_bytes = total_bytes_; |
| 253 | still_live_bytes = allocated_; |
| 254 | } |
| 255 | return std::make_tuple(total_bytes, high_watermark, still_live_bytes); |
| 256 | } |
| 257 | |
| 258 | gtl::InlinedVector<AllocRecord, 4> TrackingAllocator::GetRecordsAndUnRef() { |
| 259 | bool should_delete; |