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
CpuProfiler Class Reference

#include <cpu-profiler.h>

Inheritance diagram for CpuProfiler:
Collaboration diagram for CpuProfiler:

Public Member Functions

 CpuProfiler (Isolate *isolate)
 
 CpuProfiler (Isolate *isolate, CpuProfilesCollection *test_collection, ProfileGenerator *test_generator, ProfilerEventsProcessor *test_processor)
 
virtual ~CpuProfiler ()
 
void set_sampling_interval (TimeDelta value)
 
void StartProfiling (const char *title, bool record_samples=false)
 
void StartProfiling (String *title, bool record_samples)
 
CpuProfileStopProfiling (const char *title)
 
CpuProfileStopProfiling (String *title)
 
int GetProfilesCount ()
 
CpuProfileGetProfile (int index)
 
void DeleteAllProfiles ()
 
void DeleteProfile (CpuProfile *profile)
 
TickSampleStartTickSample ()
 
void FinishTickSample ()
 
virtual void CallbackEvent (Name *name, Address entry_point)
 
virtual void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, const char *comment)
 
virtual void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, Name *name)
 
virtual void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, CompilationInfo *info, Name *name)
 
virtual void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, CompilationInfo *info, Name *source, int line, int column)
 
virtual void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, int args_count)
 
virtual void CodeMovingGCEvent ()
 
virtual void CodeMoveEvent (Address from, Address to)
 
virtual void CodeDeleteEvent (Address from)
 
virtual void GetterCallbackEvent (Name *name, Address entry_point)
 
virtual void RegExpCodeCreateEvent (Code *code, String *source)
 
virtual void SetterCallbackEvent (Name *name, Address entry_point)
 
virtual void SharedFunctionInfoMoveEvent (Address from, Address to)
 
 INLINE (bool is_profiling() const)
 
bool * is_profiling_address ()
 
ProfileGeneratorgenerator () const
 
ProfilerEventsProcessorprocessor () const
 
Isolateisolate () const
 
- Public Member Functions inherited from CodeEventListener
virtual ~CodeEventListener ()
 

Detailed Description

Definition at line 205 of file cpu-profiler.h.

Constructor & Destructor Documentation

CpuProfiler ( Isolate isolate)
explicit

Definition at line 388 of file cpu-profiler.cc.

CpuProfiler ( Isolate isolate,
CpuProfilesCollection test_collection,
ProfileGenerator test_generator,
ProfilerEventsProcessor test_processor 
)

Definition at line 399 of file cpu-profiler.cc.

~CpuProfiler ( )
virtual

Definition at line 413 of file cpu-profiler.cc.

References ASSERT.

Member Function Documentation

void CodeDeleteEvent ( Address  from)
virtual

Implements CodeEventListener.

Definition at line 330 of file cpu-profiler.cc.

void CodeMoveEvent ( Address  from,
Address  to 
)
virtual
virtual void CodeMovingGCEvent ( )
inlinevirtual

Implements CodeEventListener.

Definition at line 249 of file cpu-profiler.h.

void DeleteAllProfiles ( )

Definition at line 180 of file cpu-profiler.cc.

void DeleteProfile ( CpuProfile profile)
void FinishTickSample ( )
inline

Definition at line 76 of file cpu-profiler-inl.h.

References ProfilerEventsProcessor::FinishTickSample().

Referenced by Sampler::SampleStack().

ProfileGenerator* generator ( ) const
inline

Definition at line 262 of file cpu-profiler.h.

Referenced by GetFunctionLineNumber().

CpuProfile * GetProfile ( int  index)

Definition at line 175 of file cpu-profiler.cc.

References CpuProfilesCollection::profiles().

int GetProfilesCount ( )

Definition at line 169 of file cpu-profiler.cc.

References CpuProfilesCollection::profiles().

Referenced by TEST().

INLINE ( bool is_profiling()  const)
inline

Definition at line 257 of file cpu-profiler.h.

bool* is_profiling_address ( )
inline

Definition at line 258 of file cpu-profiler.h.

Isolate* isolate ( ) const
inline

Definition at line 264 of file cpu-profiler.h.

ProfilerEventsProcessor* processor ( ) const
inline

Definition at line 263 of file cpu-profiler.h.

Referenced by TEST().

void set_sampling_interval ( TimeDelta  value)

Definition at line 419 of file cpu-profiler.cc.

References ASSERT.

void SharedFunctionInfoMoveEvent ( Address  from,
Address  to 
)
virtual
void StartProfiling ( const char *  title,
bool  record_samples = false 
)
void StartProfiling ( String title,
bool  record_samples 
)
TickSample * StartTickSample ( )
inline
CpuProfile * StopProfiling ( const char *  title)
CpuProfile * StopProfiling ( String title)

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