v8  9.0.257(node16.0.0)
V8 is Google's open source JavaScript engine
HeapStatistics::SpaceStatistics Struct Reference

#include <heap-statistics.h>

Collaboration diagram for HeapStatistics::SpaceStatistics:

Data Fields

std::string name
 
size_t physical_size_bytes = 0
 
size_t used_size_bytes = 0
 
std::vector< PageStatisticspage_stats
 
FreeListStatistics free_list_stats
 
ObjectStatistics object_stats
 

Detailed Description

Space granularity statistics. For each space the statistics record the space name, the amount of allocated memory and overall used memory for the space. The statistics also contain statistics for each of the space's pages, its freelist and the objects allocated on the space.

Definition at line 80 of file heap-statistics.h.

Field Documentation

◆ free_list_stats

FreeListStatistics free_list_stats

Statistics for the freelist of the space.

Definition at line 90 of file heap-statistics.h.

◆ name

std::string name

The space name

Definition at line 82 of file heap-statistics.h.

◆ object_stats

ObjectStatistics object_stats

Statistics for object allocated on the space. Filled only when NameProvider::HideInternalNames() is false.

Definition at line 93 of file heap-statistics.h.

◆ page_stats

std::vector<PageStatistics> page_stats

Statistics for each of the pages in the space.

Definition at line 88 of file heap-statistics.h.

◆ physical_size_bytes

size_t physical_size_bytes = 0

Overall amount of memory allocated for the space.

Definition at line 84 of file heap-statistics.h.

◆ used_size_bytes

size_t used_size_bytes = 0

Amount of memory actually used on the space.

Definition at line 86 of file heap-statistics.h.


The documentation for this struct was generated from the following file: