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

#include <stress-scavenge-observer.h>

Inheritance diagram for v8::internal::StressScavengeObserver:
Collaboration diagram for v8::internal::StressScavengeObserver:

Public Member Functions

 StressScavengeObserver (Heap *heap)
 
void Step (int bytes_allocated, Address soon_object, size_t size) override
 
bool HasRequestedGC () const
 
void RequestedGCDone ()
 
double MaxNewSpaceSizeReached () const
 
- Public Member Functions inherited from v8::internal::AllocationObserver
 AllocationObserver (intptr_t step_size)
 
virtual ~AllocationObserver ()=default
 
 AllocationObserver (const AllocationObserver &)=delete
 
AllocationObserveroperator= (const AllocationObserver &)=delete
 

Private Member Functions

int NextLimit (int min=0)
 

Private Attributes

Heapheap_
 
int limit_percentage_
 
bool has_requested_gc_
 
double max_new_space_size_reached_
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::AllocationObserver
static constexpr intptr_t kNotUsingFixedStepSize = -1
 
- Protected Member Functions inherited from v8::internal::AllocationObserver
virtual intptr_t GetNextStepSize ()
 

Detailed Description

Definition at line 13 of file stress-scavenge-observer.h.

Constructor & Destructor Documentation

◆ StressScavengeObserver()

v8::internal::StressScavengeObserver::StressScavengeObserver ( Heap * heap)
explicit

Definition at line 16 of file stress-scavenge-observer.cc.

Here is the call graph for this function:

Member Function Documentation

◆ HasRequestedGC()

bool v8::internal::StressScavengeObserver::HasRequestedGC ( ) const

Definition at line 60 of file stress-scavenge-observer.cc.

Here is the caller graph for this function:

◆ MaxNewSpaceSizeReached()

double v8::internal::StressScavengeObserver::MaxNewSpaceSizeReached ( ) const

Definition at line 83 of file stress-scavenge-observer.cc.

Here is the caller graph for this function:

◆ NextLimit()

int v8::internal::StressScavengeObserver::NextLimit ( int min = 0)
private

Definition at line 87 of file stress-scavenge-observer.cc.

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

◆ RequestedGCDone()

void v8::internal::StressScavengeObserver::RequestedGCDone ( )

Definition at line 64 of file stress-scavenge-observer.cc.

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

◆ Step()

void v8::internal::StressScavengeObserver::Step ( int bytes_allocated,
Address soon_object,
size_t size )
overridevirtual

Implements v8::internal::AllocationObserver.

Definition at line 29 of file stress-scavenge-observer.cc.

Here is the call graph for this function:

Member Data Documentation

◆ has_requested_gc_

bool v8::internal::StressScavengeObserver::has_requested_gc_
private

Definition at line 29 of file stress-scavenge-observer.h.

◆ heap_

Heap* v8::internal::StressScavengeObserver::heap_
private

Definition at line 27 of file stress-scavenge-observer.h.

◆ limit_percentage_

int v8::internal::StressScavengeObserver::limit_percentage_
private

Definition at line 28 of file stress-scavenge-observer.h.

◆ max_new_space_size_reached_

double v8::internal::StressScavengeObserver::max_new_space_size_reached_
private

Definition at line 31 of file stress-scavenge-observer.h.


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