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
Ticker Class Reference
Inheritance diagram for Ticker:
Collaboration diagram for Ticker:

Public Member Functions

 Ticker (Isolate *isolate, int interval)
 
 ~Ticker ()
 
virtual void Tick (TickSample *sample)
 
void SetWindow (SlidingStateWindow *window)
 
void ClearWindow ()
 
void SetProfiler (Profiler *profiler)
 
void ClearProfiler ()
 
- Public Member Functions inherited from Sampler
 Sampler (Isolate *isolate, int interval)
 
virtual ~Sampler ()
 
int interval () const
 
void SampleStack (TickSample *sample)
 
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)
 

Detailed Description

Definition at line 188 of file log.cc.

Constructor & Destructor Documentation

Ticker ( Isolate isolate,
int  interval 
)
inline

Definition at line 190 of file log.cc.

~Ticker ( )
inline

Definition at line 195 of file log.cc.

References Sampler::IsActive(), and Sampler::Stop().

Member Function Documentation

void ClearProfiler ( )
inline
void ClearWindow ( )
inline
virtual void DoSampleStack ( TickSample sample)
inlineprotectedvirtual

Implements Sampler.

Definition at line 226 of file log.cc.

References Sampler::isolate(), and StackTracer::Trace().

void SetProfiler ( Profiler profiler)
inline
void SetWindow ( SlidingStateWindow window)
inline

Definition at line 202 of file log.cc.

References Sampler::IsActive(), and Sampler::Start().

Referenced by SlidingStateWindow::SlidingStateWindow().

virtual void Tick ( TickSample sample)
inlinevirtual

Implements Sampler.

Definition at line 197 of file log.cc.

References SlidingStateWindow::AddState(), Profiler::Insert(), and TickSample::state.


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