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

Public Member Functions

 TracingAccountingAllocator (Isolate *isolate)
 
 ~TracingAccountingAllocator ()=default
 
- Public Member Functions inherited from v8::internal::AccountingAllocator
 AccountingAllocator ()
 
 AccountingAllocator (const AccountingAllocator &)=delete
 
AccountingAllocatoroperator= (const AccountingAllocator &)=delete
 
virtual ~AccountingAllocator ()
 
SegmentAllocateSegment (size_t bytes, bool supports_compression)
 
void ReturnSegment (Segment *memory, bool supports_compression)
 
size_t GetCurrentMemoryUsage () const
 
size_t GetMaxMemoryUsage () const
 
void TraceZoneCreation (const Zone *zone)
 
void TraceZoneDestruction (const Zone *zone)
 
void TraceAllocateSegment (Segment *segment)
 

Protected Member Functions

void TraceAllocateSegmentImpl (v8::internal::Segment *segment) override
 
void TraceZoneCreationImpl (const Zone *zone) override
 
void TraceZoneDestructionImpl (const Zone *zone) override
 
- Protected Member Functions inherited from v8::internal::AccountingAllocator

Private Member Functions

void UpdateMemoryTrafficAndReportMemoryUsage (size_t memory_traffic_delta)
 
void Dump (std::ostringstream &out, bool dump_details)
 

Private Attributes

Isolate *const isolate_
 
std::atomic< size_tnesting_depth_ {0}
 
base::Mutex mutex_
 
std::unordered_set< const Zone * > active_zones_
 
std::ostringstream buffer_
 
size_t memory_traffic_since_last_report_ = 0
 

Detailed Description

Definition at line 3954 of file isolate.cc.

Constructor & Destructor Documentation

◆ TracingAccountingAllocator()

v8::internal::TracingAccountingAllocator::TracingAccountingAllocator ( Isolate * isolate)
inlineexplicit

Definition at line 3956 of file isolate.cc.

◆ ~TracingAccountingAllocator()

v8::internal::TracingAccountingAllocator::~TracingAccountingAllocator ( )
default

Member Function Documentation

◆ Dump()

void v8::internal::TracingAccountingAllocator::Dump ( std::ostringstream & out,
bool dump_details )
inlineprivate

Definition at line 4030 of file isolate.cc.

◆ TraceAllocateSegmentImpl()

void v8::internal::TracingAccountingAllocator::TraceAllocateSegmentImpl ( v8::internal::Segment * segment)
inlineoverrideprotectedvirtual

Reimplemented from v8::internal::AccountingAllocator.

Definition at line 3960 of file isolate.cc.

Here is the call graph for this function:

◆ TraceZoneCreationImpl()

void v8::internal::TracingAccountingAllocator::TraceZoneCreationImpl ( const Zone * zone)
inlineoverrideprotectedvirtual

Reimplemented from v8::internal::AccountingAllocator.

Definition at line 3965 of file isolate.cc.

◆ TraceZoneDestructionImpl()

void v8::internal::TracingAccountingAllocator::TraceZoneDestructionImpl ( const Zone * zone)
inlineoverrideprotectedvirtual

Reimplemented from v8::internal::AccountingAllocator.

Definition at line 3971 of file isolate.cc.

Here is the call graph for this function:

◆ UpdateMemoryTrafficAndReportMemoryUsage()

void v8::internal::TracingAccountingAllocator::UpdateMemoryTrafficAndReportMemoryUsage ( size_t memory_traffic_delta)
inlineprivate

Definition at line 3990 of file isolate.cc.

Here is the call graph for this function:

Member Data Documentation

◆ active_zones_

std::unordered_set<const Zone*> v8::internal::TracingAccountingAllocator::active_zones_
private

Definition at line 4079 of file isolate.cc.

◆ buffer_

std::ostringstream v8::internal::TracingAccountingAllocator::buffer_
private

Definition at line 4083 of file isolate.cc.

◆ isolate_

Isolate* const v8::internal::TracingAccountingAllocator::isolate_
private

Definition at line 4075 of file isolate.cc.

◆ memory_traffic_since_last_report_

size_t v8::internal::TracingAccountingAllocator::memory_traffic_since_last_report_ = 0
private

Definition at line 4085 of file isolate.cc.

◆ mutex_

base::Mutex v8::internal::TracingAccountingAllocator::mutex_
private

Definition at line 4078 of file isolate.cc.

◆ nesting_depth_

std::atomic<size_t> v8::internal::TracingAccountingAllocator::nesting_depth_ {0}
private

Definition at line 4076 of file isolate.cc.


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