![]() |
v8
9.0.257(node16.0.0)
V8 is Google's open source JavaScript engine
|
#include <heap-statistics.h>
Data Structures | |
| struct | FreeListStatistics |
| struct | ObjectStatistics |
| struct | PageStatistics |
| struct | SpaceStatistics |
Public Types | |
| enum | DetailLevel : uint8_t { kBrief, kDetailed } |
Data Fields | |
| size_t | physical_size_bytes = 0 |
| size_t | used_size_bytes = 0 |
| DetailLevel | detail_level |
| std::vector< SpaceStatistics > | space_stats |
HeapStatistics contains memory consumption and utilization statistics for a cppgc heap.
Definition at line 18 of file heap-statistics.h.
| enum DetailLevel : uint8_t |
Specifies the detail level of the heap statistics. Brief statistics contain only the top-level allocated and used memory statistics for the entire heap. Detailed statistics also contain a break down per space and page, as well as freelist statistics and object type histograms. Note that used memory reported by brief statistics and detailed statistics might differ slightly.
| Enumerator | |
|---|---|
| kBrief | |
| kDetailed | |
Definition at line 27 of file heap-statistics.h.
| DetailLevel detail_level |
Detail level of this HeapStatistics.
Definition at line 101 of file heap-statistics.h.
| size_t physical_size_bytes = 0 |
Overall amount of memory allocated for the heap.
Definition at line 97 of file heap-statistics.h.
| std::vector<SpaceStatistics> space_stats |
Statistics for each of the spaces in the heap. Filled only when detail_level is kDetailed.
Definition at line 105 of file heap-statistics.h.
| size_t used_size_bytes = 0 |
Amount of memory actually used on the heap.
Definition at line 99 of file heap-statistics.h.