v8 10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
HeapStatistics Class Reference

#include <v8-statistics.h>

Public Member Functions

 HeapStatistics ()
 
size_t total_heap_size ()
 
size_t total_heap_size_executable ()
 
size_t total_physical_size ()
 
size_t total_available_size ()
 
size_t total_global_handles_size ()
 
size_t used_global_handles_size ()
 
size_t used_heap_size ()
 
size_t heap_size_limit ()
 
size_t malloced_memory ()
 
size_t external_memory ()
 
size_t peak_malloced_memory ()
 
size_t number_of_native_contexts ()
 
size_t number_of_detached_contexts ()
 
size_t does_zap_garbage ()
 

Friends

class V8
 
class Isolate
 

Detailed Description

Collection of V8 heap information.

Instances of this class can be passed to v8::Isolate::GetHeapStatistics to get heap statistics from V8.

Definition at line 119 of file v8-statistics.h.

Constructor & Destructor Documentation

◆ HeapStatistics()

Member Function Documentation

◆ does_zap_garbage()

size_t does_zap_garbage ( )
inline

Returns a 0/1 boolean, which signifies whether the V8 overwrite heap garbage with a bit pattern.

Definition at line 140 of file v8-statistics.h.

◆ external_memory()

size_t external_memory ( )
inline

Definition at line 131 of file v8-statistics.h.

◆ heap_size_limit()

size_t heap_size_limit ( )
inline

Definition at line 129 of file v8-statistics.h.

◆ malloced_memory()

size_t malloced_memory ( )
inline

Definition at line 130 of file v8-statistics.h.

◆ number_of_detached_contexts()

size_t number_of_detached_contexts ( )
inline

Definition at line 134 of file v8-statistics.h.

◆ number_of_native_contexts()

size_t number_of_native_contexts ( )
inline

Definition at line 133 of file v8-statistics.h.

◆ peak_malloced_memory()

size_t peak_malloced_memory ( )
inline

Definition at line 132 of file v8-statistics.h.

◆ total_available_size()

size_t total_available_size ( )
inline

Definition at line 125 of file v8-statistics.h.

◆ total_global_handles_size()

size_t total_global_handles_size ( )
inline

Definition at line 126 of file v8-statistics.h.

◆ total_heap_size()

size_t total_heap_size ( )
inline

Definition at line 122 of file v8-statistics.h.

◆ total_heap_size_executable()

size_t total_heap_size_executable ( )
inline

Definition at line 123 of file v8-statistics.h.

◆ total_physical_size()

size_t total_physical_size ( )
inline

Definition at line 124 of file v8-statistics.h.

◆ used_global_handles_size()

size_t used_global_handles_size ( )
inline

Definition at line 127 of file v8-statistics.h.

◆ used_heap_size()

size_t used_heap_size ( )
inline

Definition at line 128 of file v8-statistics.h.

Friends And Related Symbol Documentation

◆ Isolate

friend class Isolate
friend

Definition at line 159 of file v8-statistics.h.

◆ V8

friend class V8
friend

Definition at line 158 of file v8-statistics.h.


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