v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::HeapStatistics Class Reference

#include <v8-statistics.h>

Collaboration diagram for v8::HeapStatistics:

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 ()
 

Private Attributes

size_t total_heap_size_
 
size_t total_heap_size_executable_
 
size_t total_physical_size_
 
size_t total_available_size_
 
size_t used_heap_size_
 
size_t heap_size_limit_
 
size_t malloced_memory_
 
size_t external_memory_
 
size_t peak_malloced_memory_
 
bool does_zap_garbage_
 
size_t number_of_native_contexts_
 
size_t number_of_detached_contexts_
 
size_t total_global_handles_size_
 
size_t used_global_handles_size_
 

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 140 of file v8-statistics.h.

Constructor & Destructor Documentation

◆ HeapStatistics()

v8::HeapStatistics::HeapStatistics ( )

Definition at line 6523 of file api.cc.

Member Function Documentation

◆ does_zap_garbage()

size_t v8::HeapStatistics::does_zap_garbage ( )
inline

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

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

◆ external_memory()

size_t v8::HeapStatistics::external_memory ( )
inline

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

◆ heap_size_limit()

size_t v8::HeapStatistics::heap_size_limit ( )
inline

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

◆ malloced_memory()

size_t v8::HeapStatistics::malloced_memory ( )
inline

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

◆ number_of_detached_contexts()

size_t v8::HeapStatistics::number_of_detached_contexts ( )
inline

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

◆ number_of_native_contexts()

size_t v8::HeapStatistics::number_of_native_contexts ( )
inline

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

◆ peak_malloced_memory()

size_t v8::HeapStatistics::peak_malloced_memory ( )
inline

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

◆ total_available_size()

size_t v8::HeapStatistics::total_available_size ( )
inline

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

◆ total_global_handles_size()

size_t v8::HeapStatistics::total_global_handles_size ( )
inline

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

◆ total_heap_size()

size_t v8::HeapStatistics::total_heap_size ( )
inline

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

◆ total_heap_size_executable()

size_t v8::HeapStatistics::total_heap_size_executable ( )
inline

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

◆ total_physical_size()

size_t v8::HeapStatistics::total_physical_size ( )
inline

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

◆ used_global_handles_size()

size_t v8::HeapStatistics::used_global_handles_size ( )
inline

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

◆ used_heap_size()

size_t v8::HeapStatistics::used_heap_size ( )
inline

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

Friends And Related Symbol Documentation

◆ Isolate

friend class Isolate
friend

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

◆ V8

friend class V8
friend

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

Member Data Documentation

◆ does_zap_garbage_

bool v8::HeapStatistics::does_zap_garbage_
private

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

◆ external_memory_

size_t v8::HeapStatistics::external_memory_
private

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

◆ heap_size_limit_

size_t v8::HeapStatistics::heap_size_limit_
private

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

◆ malloced_memory_

size_t v8::HeapStatistics::malloced_memory_
private

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

◆ number_of_detached_contexts_

size_t v8::HeapStatistics::number_of_detached_contexts_
private

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

◆ number_of_native_contexts_

size_t v8::HeapStatistics::number_of_native_contexts_
private

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

◆ peak_malloced_memory_

size_t v8::HeapStatistics::peak_malloced_memory_
private

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

◆ total_available_size_

size_t v8::HeapStatistics::total_available_size_
private

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

◆ total_global_handles_size_

size_t v8::HeapStatistics::total_global_handles_size_
private

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

◆ total_heap_size_

size_t v8::HeapStatistics::total_heap_size_
private

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

◆ total_heap_size_executable_

size_t v8::HeapStatistics::total_heap_size_executable_
private

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

◆ total_physical_size_

size_t v8::HeapStatistics::total_physical_size_
private

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

◆ used_global_handles_size_

size_t v8::HeapStatistics::used_global_handles_size_
private

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

◆ used_heap_size_

size_t v8::HeapStatistics::used_heap_size_
private

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


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