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

#include <heap-statistics.h>

Data Fields

size_t num_types = 0
 
std::vector< std::string > type_name
 
std::vector< size_t > type_count
 
std::vector< size_t > type_bytes
 

Detailed Description

Statistics of object types. For each type the statistics record its name, how many objects of that type were allocated, and the overall size used by these objects.

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

Field Documentation

◆ num_types

size_t num_types = 0

Number of distinct types in the heap.

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

◆ type_bytes

std::vector<size_t> type_bytes

Overall size of allocated objects per each type.

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

◆ type_count

std::vector<size_t> type_count

Number of allocated objects per each type.

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

◆ type_name

std::vector<std::string> type_name

Name of each type in the heap.

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


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