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

Public Member Functions

 AllocationTrackerForDebugging (Heap *heap)
 
 ~AllocationTrackerForDebugging () final
 
void AllocationEvent (Address addr, int size) final
 
void MoveEvent (Address source, Address target, int size) final
 
void UpdateObjectSizeEvent (Address, int) final
 
- Public Member Functions inherited from v8::internal::HeapObjectAllocationTracker
virtual ~HeapObjectAllocationTracker ()=default
 

Static Public Member Functions

static bool IsNeeded ()
 

Private Member Functions

void UpdateAllocationsHash (Tagged< HeapObject > object)
 
void UpdateAllocationsHash (uint32_t value)
 
void PrintAllocationsHash ()
 

Private Attributes

Heap *const heap_
 
std::atomic< size_tallocations_count_ {0}
 
RunningStringHasher raw_allocations_hash_ {0}
 

Detailed Description

Definition at line 816 of file heap.cc.

Constructor & Destructor Documentation

◆ AllocationTrackerForDebugging()

v8::internal::Heap::AllocationTrackerForDebugging::AllocationTrackerForDebugging ( Heap * heap)
inlineexplicit

Definition at line 824 of file heap.cc.

Here is the call graph for this function:

◆ ~AllocationTrackerForDebugging()

v8::internal::Heap::AllocationTrackerForDebugging::~AllocationTrackerForDebugging ( )
inlinefinal

Definition at line 829 of file heap.cc.

Here is the call graph for this function:

Member Function Documentation

◆ AllocationEvent()

void v8::internal::Heap::AllocationTrackerForDebugging::AllocationEvent ( Address addr,
int size )
inlinefinalvirtual

Implements v8::internal::HeapObjectAllocationTracker.

Definition at line 836 of file heap.cc.

Here is the call graph for this function:

◆ IsNeeded()

static bool v8::internal::Heap::AllocationTrackerForDebugging::IsNeeded ( )
inlinestatic

Definition at line 819 of file heap.cc.

Here is the caller graph for this function:

◆ MoveEvent()

void v8::internal::Heap::AllocationTrackerForDebugging::MoveEvent ( Address source,
Address target,
int size )
inlinefinalvirtual

Reimplemented from v8::internal::HeapObjectAllocationTracker.

Definition at line 858 of file heap.cc.

Here is the call graph for this function:

◆ PrintAllocationsHash()

void v8::internal::Heap::AllocationTrackerForDebugging::PrintAllocationsHash ( )
inlineprivate

Definition at line 900 of file heap.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateAllocationsHash() [1/2]

void v8::internal::Heap::AllocationTrackerForDebugging::UpdateAllocationsHash ( Tagged< HeapObject > object)
inlineprivate

Definition at line 879 of file heap.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateAllocationsHash() [2/2]

void v8::internal::Heap::AllocationTrackerForDebugging::UpdateAllocationsHash ( uint32_t value)
inlineprivate

Definition at line 893 of file heap.cc.

Here is the call graph for this function:

◆ UpdateObjectSizeEvent()

void v8::internal::Heap::AllocationTrackerForDebugging::UpdateObjectSizeEvent ( Address ,
int  )
inlinefinalvirtual

Reimplemented from v8::internal::HeapObjectAllocationTracker.

Definition at line 876 of file heap.cc.

Member Data Documentation

◆ allocations_count_

std::atomic<size_t> v8::internal::Heap::AllocationTrackerForDebugging::allocations_count_ {0}
private

Definition at line 910 of file heap.cc.

◆ heap_

Heap* const v8::internal::Heap::AllocationTrackerForDebugging::heap_
private

Definition at line 906 of file heap.cc.

◆ raw_allocations_hash_

RunningStringHasher v8::internal::Heap::AllocationTrackerForDebugging::raw_allocations_hash_ {0}
private

Definition at line 912 of file heap.cc.


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