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

Public Member Functions

 Ticker (Isolate *isolate, int interval_microseconds)
 
 ~Ticker () override
 
void SetProfiler (Profiler *profiler)
 
void ClearProfiler ()
 
void SampleStack (const v8::RegisterState &state) 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

Profilerprofiler_ = nullptr
 
std::unique_ptr< SamplingThreadsampling_thread_
 
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 1117 of file log.cc.

Constructor & Destructor Documentation

◆ Ticker()

v8::internal::Ticker::Ticker ( Isolate * isolate,
int interval_microseconds )
inline

Definition at line 1119 of file log.cc.

◆ ~Ticker()

v8::internal::Ticker::~Ticker ( )
inlineoverride

Definition at line 1125 of file log.cc.

Here is the call graph for this function:

Member Function Documentation

◆ ClearProfiler()

void v8::internal::Ticker::ClearProfiler ( )
inline

Definition at line 1136 of file log.cc.

Here is the call graph for this function:

◆ SampleStack()

void v8::internal::Ticker::SampleStack ( const v8::RegisterState & state)
inlineoverridevirtual

Implements v8::sampler::Sampler.

Definition at line 1142 of file log.cc.

Here is the call graph for this function:

◆ SetProfiler()

void v8::internal::Ticker::SetProfiler ( Profiler * profiler)
inline

Definition at line 1129 of file log.cc.

Here is the call graph for this function:

Member Data Documentation

◆ perThreadData_

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

Definition at line 1161 of file log.cc.

◆ profiler_

Profiler* v8::internal::Ticker::profiler_ = nullptr
private

Definition at line 1159 of file log.cc.

◆ sampling_thread_

std::unique_ptr<SamplingThread> v8::internal::Ticker::sampling_thread_
private

Definition at line 1160 of file log.cc.


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