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

#include <allocation-observer.h>

Inheritance diagram for v8::internal::AllocationObserver:
Collaboration diagram for v8::internal::AllocationObserver:

Public Member Functions

 AllocationObserver (intptr_t step_size)
 
virtual ~AllocationObserver ()=default
 
 AllocationObserver (const AllocationObserver &)=delete
 
AllocationObserveroperator= (const AllocationObserver &)=delete
 

Static Public Attributes

static constexpr intptr_t kNotUsingFixedStepSize = -1
 

Protected Member Functions

virtual void Step (int bytes_allocated, Address soon_object, size_t size)=0
 
virtual intptr_t GetNextStepSize ()
 

Private Attributes

const intptr_t step_size_
 

Friends

class AllocationCounter
 

Detailed Description

Definition at line 18 of file allocation-observer.h.

Constructor & Destructor Documentation

◆ AllocationObserver() [1/2]

v8::internal::AllocationObserver::AllocationObserver ( intptr_t step_size)
inlineexplicit

Definition at line 21 of file allocation-observer.h.

◆ ~AllocationObserver()

virtual v8::internal::AllocationObserver::~AllocationObserver ( )
virtualdefault

◆ AllocationObserver() [2/2]

v8::internal::AllocationObserver::AllocationObserver ( const AllocationObserver & )
delete

Member Function Documentation

◆ GetNextStepSize()

virtual intptr_t v8::internal::AllocationObserver::GetNextStepSize ( )
inlineprotectedvirtual

Reimplemented in v8::internal::SamplingHeapProfiler::Observer, and v8::internal::ScheduleMinorGCTaskObserver.

Definition at line 42 of file allocation-observer.h.

Here is the caller graph for this function:

◆ operator=()

AllocationObserver & v8::internal::AllocationObserver::operator= ( const AllocationObserver & )
delete

◆ Step()

virtual void v8::internal::AllocationObserver::Step ( int bytes_allocated,
Address soon_object,
size_t size )
protectedpure virtual

Friends And Related Symbol Documentation

◆ AllocationCounter

friend class AllocationCounter
friend

Definition at line 50 of file allocation-observer.h.

Member Data Documentation

◆ kNotUsingFixedStepSize

intptr_t v8::internal::AllocationObserver::kNotUsingFixedStepSize = -1
staticconstexpr

Definition at line 20 of file allocation-observer.h.

◆ step_size_

const intptr_t v8::internal::AllocationObserver::step_size_
private

Definition at line 48 of file allocation-observer.h.


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