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;
Definition: process-heap-statistics.h:18
static size_t TotalAllocatedSpace()
Definition: process-heap-statistics.h:23
static size_t TotalAllocatedObjectSize()
Definition: process-heap-statistics.h:20
Definition: allocation.h:38
#define V8_EXPORT
Definition: v8config.h:793