![]()  | 
  
    v8
    3.25.30(node0.11.13)
    
   V8 is Google's open source JavaScript engine 
   | 
 
#include <sampler.h>

Public Member Functions | |
| Sampler (Isolate *isolate, int interval) | |
| virtual | ~Sampler () | 
| Isolate * | isolate () const | 
| int | interval () const | 
| void | SampleStack (const RegisterState ®s) | 
| void | Start () | 
| void | Stop () | 
| bool | IsProfiling () const | 
| void | IncreaseProfilingDepth () | 
| void | DecreaseProfilingDepth () | 
| bool | IsActive () const | 
| void | DoSample () | 
| void | SetHasProcessingThread (bool value) | 
| unsigned | js_and_external_sample_count () const | 
| void | StartCountingSamples () | 
| PlatformData * | platform_data () const | 
Static Public Member Functions | |
| static void | SetUp () | 
| static void | TearDown () | 
Protected Member Functions | |
| virtual void | Tick (TickSample *sample)=0 | 
Definition at line 646 of file sampler.cc.
      
  | 
  virtual | 
Definition at line 658 of file sampler.cc.
References ASSERT, and Sampler::IsActive().
| void DecreaseProfilingDepth | ( | ) | 
Definition at line 686 of file sampler.cc.
References v8::internal::NoBarrier_AtomicIncrement().
Referenced by Ticker::ClearProfiler().
| void DoSample | ( | ) | 
Referenced by ProfilerEventsProcessor::Run(), and SamplerThread::Run().
| void IncreaseProfilingDepth | ( | ) | 
Definition at line 678 of file sampler.cc.
References v8::internal::NoBarrier_AtomicIncrement().
Referenced by Ticker::SetProfiler().
      
  | 
  inline | 
Definition at line 88 of file sampler.h.
Referenced by SamplerThread::AddActiveSampler().
      
  | 
  inline | 
Definition at line 106 of file sampler.h.
References v8::internal::NoBarrier_Load().
Referenced by SamplerThread::AddActiveSampler(), Ticker::ClearProfiler(), SamplerThread::RemoveActiveSampler(), Ticker::SetProfiler(), Sampler::Start(), Sampler::Stop(), Sampler::~Sampler(), and Ticker::~Ticker().
      
  | 
  inline | 
Definition at line 87 of file sampler.h.
Referenced by SamplerThread::Run().
      
  | 
  inline | 
Definition at line 98 of file sampler.h.
References v8::internal::NoBarrier_Load().
Referenced by SamplerThread::Run().
| void SampleStack | ( | const RegisterState & | regs | ) | 
Definition at line 694 of file sampler.cc.
References Isolate::cpu_profiler(), v8::internal::EXTERNAL, CpuProfiler::FinishTickSample(), TickSample::Init(), v8::internal::JS, v8::internal::NULL, v8::internal::sample, CpuProfiler::StartTickSample(), TickSample::state, and Sampler::Tick().
      
  | 
  inline | 
Definition at line 111 of file sampler.h.
References v8::internal::NoBarrier_Store().
      
  | 
  static | 
Definition at line 630 of file sampler.cc.
References SamplerThread::SetUp().
| void Start | ( | ) | 
Definition at line 664 of file sampler.cc.
References SamplerThread::AddActiveSampler(), ASSERT, and Sampler::IsActive().
Referenced by Ticker::SetProfiler().
| void Stop | ( | ) | 
Definition at line 671 of file sampler.cc.
References ASSERT, Sampler::IsActive(), and SamplerThread::RemoveActiveSampler().
Referenced by Ticker::ClearProfiler(), and Ticker::~Ticker().
      
  | 
  static | 
Definition at line 638 of file sampler.cc.
References SamplerThread::TearDown().
Referenced by V8::TearDown().
      
  | 
  protectedpure virtual | 
Implemented in Ticker.
Referenced by Sampler::SampleStack().