V8 Project
v8::HeapStatistics Class Reference

Collection of V8 heap information. More...

#include <v8.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 used_heap_size ()
 
size_t heap_size_limit ()
 

Private Attributes

size_t total_heap_size_
 
size_t total_heap_size_executable_
 
size_t total_physical_size_
 
size_t used_heap_size_
 
size_t heap_size_limit_
 

Friends

class V8
 
class Isolate
 

Detailed Description

Collection of V8 heap information.

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

Definition at line 4228 of file v8.h.

Constructor & Destructor Documentation

◆ HeapStatistics()

v8::HeapStatistics::HeapStatistics ( )

Definition at line 5090 of file api.cc.

5090  : total_heap_size_(0),
5093  used_heap_size_(0),
5094  heap_size_limit_(0) { }
size_t total_heap_size_executable_
Definition: v8.h:4239
size_t used_heap_size_
Definition: v8.h:4241
size_t total_physical_size_
Definition: v8.h:4240
size_t heap_size_limit_
Definition: v8.h:4242
size_t total_heap_size_
Definition: v8.h:4238

Member Function Documentation

◆ heap_size_limit()

size_t v8::HeapStatistics::heap_size_limit ( )
inline

Definition at line 4235 of file v8.h.

4235 { return heap_size_limit_; }

◆ total_heap_size()

size_t v8::HeapStatistics::total_heap_size ( )
inline

Definition at line 4231 of file v8.h.

4231 { return total_heap_size_; }

◆ total_heap_size_executable()

size_t v8::HeapStatistics::total_heap_size_executable ( )
inline

Definition at line 4232 of file v8.h.

4232 { return total_heap_size_executable_; }

◆ total_physical_size()

size_t v8::HeapStatistics::total_physical_size ( )
inline

Definition at line 4233 of file v8.h.

4233 { return total_physical_size_; }

◆ used_heap_size()

size_t v8::HeapStatistics::used_heap_size ( )
inline

Definition at line 4234 of file v8.h.

4234 { return used_heap_size_; }

Friends And Related Function Documentation

◆ Isolate

friend class Isolate
friend

Definition at line 4245 of file v8.h.

◆ V8

friend class V8
friend

Definition at line 4244 of file v8.h.

Member Data Documentation

◆ heap_size_limit_

size_t v8::HeapStatistics::heap_size_limit_
private

Definition at line 4242 of file v8.h.

Referenced by v8::Isolate::GetHeapStatistics().

◆ total_heap_size_

size_t v8::HeapStatistics::total_heap_size_
private

Definition at line 4238 of file v8.h.

Referenced by v8::Isolate::GetHeapStatistics().

◆ total_heap_size_executable_

size_t v8::HeapStatistics::total_heap_size_executable_
private

Definition at line 4239 of file v8.h.

Referenced by v8::Isolate::GetHeapStatistics().

◆ total_physical_size_

size_t v8::HeapStatistics::total_physical_size_
private

Definition at line 4240 of file v8.h.

Referenced by v8::Isolate::GetHeapStatistics().

◆ used_heap_size_

size_t v8::HeapStatistics::used_heap_size_
private

Definition at line 4241 of file v8.h.

Referenced by v8::Isolate::GetHeapStatistics().


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