![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
Public Member Functions | |
| CpuSampler (Isolate *isolate, SamplingEventsProcessor *processor) | |
| void | SampleStack (const v8::RegisterState ®s) override |
Public Member Functions inherited from v8::sampler::Sampler | |
| Sampler (Isolate *isolate) | |
| virtual | ~Sampler () |
| Isolate * | isolate () 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 | |
| SamplingEventsProcessor * | processor_ |
| Isolate::PerIsolateThreadData * | perThreadData_ |
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 |
| Isolate * | isolate_ |
| std::atomic_bool | active_ {false} |
| std::atomic_bool | record_sample_ {false} |
| std::unique_ptr< PlatformData > | data_ |
Definition at line 35 of file cpu-profiler.cc.
|
inline |
Definition at line 37 of file cpu-profiler.cc.
|
inlineoverridevirtual |
Implements v8::sampler::Sampler.
Definition at line 42 of file cpu-profiler.cc.
|
private |
Definition at line 75 of file cpu-profiler.cc.
|
private |
Definition at line 74 of file cpu-profiler.cc.