5#ifndef INCLUDE_CPPGC_PROCESS_HEAP_STATISTICS_H_
6#define INCLUDE_CPPGC_PROCESS_HEAP_STATISTICS_H_
15class ProcessHeapStatisticsUpdater;
21 return total_allocated_object_size_.load(std::memory_order_relaxed);
24 return total_allocated_space_.load(std::memory_order_relaxed);
28 static std::atomic_size_t total_allocated_space_;
29 static std::atomic_size_t total_allocated_object_size_;
31 friend class internal::ProcessHeapStatisticsUpdater;
static size_t TotalAllocatedSpace()
static size_t TotalAllocatedObjectSize()