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

Public Member Functions

 Observer (Heap *heap, intptr_t step_size, uint64_t rate, SamplingHeapProfiler *profiler, base::RandomNumberGenerator *random)
 
- Public Member Functions inherited from v8::internal::AllocationObserver
 AllocationObserver (intptr_t step_size)
 
virtual ~AllocationObserver ()=default
 
 AllocationObserver (const AllocationObserver &)=delete
 
AllocationObserveroperator= (const AllocationObserver &)=delete
 

Protected Member Functions

void Step (int bytes_allocated, Address soon_object, size_t size) override
 
intptr_t GetNextStepSize () override
 
- Protected Member Functions inherited from v8::internal::AllocationObserver

Private Member Functions

intptr_t GetNextSampleInterval (uint64_t rate)
 

Private Attributes

SamplingHeapProfiler *const profiler_
 
Heap *const heap_
 
base::RandomNumberGenerator *const random_
 
uint64_t const rate_
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::AllocationObserver
static constexpr intptr_t kNotUsingFixedStepSize = -1
 

Detailed Description

Definition at line 129 of file sampling-heap-profiler.h.

Constructor & Destructor Documentation

◆ Observer()

v8::internal::SamplingHeapProfiler::Observer::Observer ( Heap * heap,
intptr_t step_size,
uint64_t rate,
SamplingHeapProfiler * profiler,
base::RandomNumberGenerator * random )
inline

Definition at line 131 of file sampling-heap-profiler.h.

Member Function Documentation

◆ GetNextSampleInterval()

intptr_t v8::internal::SamplingHeapProfiler::Observer::GetNextSampleInterval ( uint64_t rate)
private

Definition at line 29 of file sampling-heap-profiler.cc.

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

◆ GetNextStepSize()

intptr_t v8::internal::SamplingHeapProfiler::Observer::GetNextStepSize ( )
inlineoverrideprotectedvirtual

Reimplemented from v8::internal::AllocationObserver.

Definition at line 151 of file sampling-heap-profiler.h.

Here is the call graph for this function:

◆ Step()

void v8::internal::SamplingHeapProfiler::Observer::Step ( int bytes_allocated,
Address soon_object,
size_t size )
inlineoverrideprotectedvirtual

Implements v8::internal::AllocationObserver.

Definition at line 141 of file sampling-heap-profiler.h.

Here is the call graph for this function:

Member Data Documentation

◆ heap_

Heap* const v8::internal::SamplingHeapProfiler::Observer::heap_
private

Definition at line 156 of file sampling-heap-profiler.h.

◆ profiler_

SamplingHeapProfiler* const v8::internal::SamplingHeapProfiler::Observer::profiler_
private

Definition at line 155 of file sampling-heap-profiler.h.

◆ random_

base::RandomNumberGenerator* const v8::internal::SamplingHeapProfiler::Observer::random_
private

Definition at line 157 of file sampling-heap-profiler.h.

◆ rate_

uint64_t const v8::internal::SamplingHeapProfiler::Observer::rate_
private

Definition at line 158 of file sampling-heap-profiler.h.


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