v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Sampler Class Referenceabstract

#include <platform.h>

Inheritance diagram for Sampler:

Data Structures

class  PlatformData
 

Public Member Functions

 Sampler (Isolate *isolate, int interval)
 
virtual ~Sampler ()
 
int interval () const
 
void SampleStack (TickSample *sample)
 
virtual void Tick (TickSample *sample)=0
 
void Start ()
 
void Stop ()
 
bool IsProfiling () const
 
void IncreaseProfilingDepth ()
 
void DecreaseProfilingDepth ()
 
bool IsActive () const
 
Isolateisolate ()
 
int samples_taken () const
 
void ResetSamplesTaken ()
 
PlatformDatadata ()
 
PlatformDataplatform_data ()
 

Protected Member Functions

virtual void DoSampleStack (TickSample *sample)=0
 

Detailed Description

Definition at line 706 of file platform.h.

Constructor & Destructor Documentation

Sampler ( Isolate isolate,
int  interval 
)

Definition at line 755 of file platform-cygwin.cc.

~Sampler ( )
virtual

Definition at line 765 of file platform-cygwin.cc.

References ASSERT, and Sampler::IsActive().

Member Function Documentation

PlatformData* data ( )
inline

Definition at line 743 of file platform.h.

void DecreaseProfilingDepth ( )
inline

Definition at line 731 of file platform.h.

References v8::internal::NoBarrier_AtomicIncrement().

Referenced by Ticker::ClearProfiler().

virtual void DoSampleStack ( TickSample sample)
protectedpure virtual

Implemented in Ticker.

Referenced by Sampler::SampleStack().

void IncreaseProfilingDepth ( )
inline

Definition at line 730 of file platform.h.

References v8::internal::NoBarrier_AtomicIncrement().

Referenced by Ticker::SetProfiler().

int interval ( ) const
inline

Definition at line 712 of file platform.h.

Referenced by SamplerThread::AddActiveSampler(), and SignalSender::AddActiveSampler().

bool IsProfiling ( ) const
inline
PlatformData* platform_data ( )
inline

Definition at line 745 of file platform.h.

Referenced by SignalSender::DoCpuProfile(), and SamplerThread::SampleContext().

void ResetSamplesTaken ( )
inline

Definition at line 740 of file platform.h.

int samples_taken ( ) const
inline

Definition at line 739 of file platform.h.

void SampleStack ( TickSample sample)
inline

Definition at line 715 of file platform.h.

References Sampler::DoSampleStack().

Referenced by SamplerThread::SampleContext().

virtual void Tick ( TickSample sample)
pure virtual

Implemented in Ticker.

Referenced by SamplerThread::SampleContext().


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