v8  3.25.30(node0.11.13)
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 <sampler.h>

Inheritance diagram for Sampler:

Public Member Functions

 Sampler (Isolate *isolate, int interval)
 
virtual ~Sampler ()
 
Isolateisolate () const
 
int interval () const
 
void SampleStack (const RegisterState &regs)
 
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
 

Detailed Description

Definition at line 77 of file sampler.h.

Constructor & Destructor Documentation

Sampler ( Isolate isolate,
int  interval 
)

Definition at line 646 of file sampler.cc.

~Sampler ( )
virtual

Definition at line 658 of file sampler.cc.

References ASSERT, and Sampler::IsActive().

Member Function Documentation

void DecreaseProfilingDepth ( )

Definition at line 686 of file sampler.cc.

References v8::internal::NoBarrier_AtomicIncrement().

Referenced by Ticker::ClearProfiler().

void DoSample ( )
void IncreaseProfilingDepth ( )

Definition at line 678 of file sampler.cc.

References v8::internal::NoBarrier_AtomicIncrement().

Referenced by Ticker::SetProfiler().

int interval ( ) const
inline

Definition at line 88 of file sampler.h.

Referenced by SamplerThread::AddActiveSampler().

Isolate* isolate ( ) const
inline

Definition at line 87 of file sampler.h.

Referenced by SamplerThread::Run().

bool IsProfiling ( ) const
inline

Definition at line 98 of file sampler.h.

References v8::internal::NoBarrier_Load().

Referenced by SamplerThread::Run().

unsigned js_and_external_sample_count ( ) const
inline

Definition at line 116 of file sampler.h.

PlatformData* platform_data ( ) const
inline

Definition at line 125 of file sampler.h.

void SetHasProcessingThread ( bool  value)
inline

Definition at line 111 of file sampler.h.

References v8::internal::NoBarrier_Store().

void SetUp ( )
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 StartCountingSamples ( )
inline

Definition at line 119 of file sampler.h.

void Stop ( )
void TearDown ( )
static

Definition at line 638 of file sampler.cc.

References SamplerThread::TearDown().

Referenced by V8::TearDown().

virtual void Tick ( TickSample sample)
protectedpure virtual

Implemented in Ticker.

Referenced by Sampler::SampleStack().


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