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

Public Member Functions

 CpuSampler (Isolate *isolate, SamplingEventsProcessor *processor)
 
void SampleStack (const v8::RegisterState &regs) override
 
- Public Member Functions inherited from v8::sampler::Sampler
 Sampler (Isolate *isolate)
 
virtual ~Sampler ()
 
Isolateisolate () const
 
void Start ()
 
void Stop ()
 
bool IsActive () const
 
bool ShouldRecordSample ()
 
void DoSample ()
 
unsigned js_sample_count () const
 
unsigned external_sample_count () const
 
void StartCountingSamples ()
 
PlatformData * platform_data () const
 

Private Attributes

SamplingEventsProcessorprocessor_
 
Isolate::PerIsolateThreadDataperThreadData_
 

Additional Inherited Members

- Static Public Attributes inherited from v8::sampler::Sampler
static const int kMaxFramesCountLog2 = 8
 
static const unsigned kMaxFramesCount = (1u << kMaxFramesCountLog2) - 1
 
- Protected Member Functions inherited from v8::sampler::Sampler
void SetActive (bool value)
 
void SetShouldRecordSample ()
 
 DISALLOW_IMPLICIT_CONSTRUCTORS (Sampler)
 
- Protected Attributes inherited from v8::sampler::Sampler
bool is_counting_samples_ = false
 
unsigned js_sample_count_ = 0
 
unsigned external_sample_count_ = 0
 
Isolateisolate_
 
std::atomic_bool active_ {false}
 
std::atomic_bool record_sample_ {false}
 
std::unique_ptr< PlatformData > data_
 

Detailed Description

Definition at line 35 of file cpu-profiler.cc.

Constructor & Destructor Documentation

◆ CpuSampler()

v8::internal::CpuSampler::CpuSampler ( Isolate * isolate,
SamplingEventsProcessor * processor )
inline

Definition at line 37 of file cpu-profiler.cc.

Member Function Documentation

◆ SampleStack()

void v8::internal::CpuSampler::SampleStack ( const v8::RegisterState & regs)
inlineoverridevirtual

Implements v8::sampler::Sampler.

Definition at line 42 of file cpu-profiler.cc.

Here is the call graph for this function:

Member Data Documentation

◆ perThreadData_

Isolate::PerIsolateThreadData* v8::internal::CpuSampler::perThreadData_
private

Definition at line 75 of file cpu-profiler.cc.

◆ processor_

SamplingEventsProcessor* v8::internal::CpuSampler::processor_
private

Definition at line 74 of file cpu-profiler.cc.


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