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

#include <cpu-profiler.h>

Static Public Member Functions

static void SetUp ()
 
static void TearDown ()
 
static void StartProfiling (const char *title)
 
static void StartProfiling (String *title)
 
static CpuProfileStopProfiling (const char *title)
 
static CpuProfileStopProfiling (Object *security_token, String *title)
 
static int GetProfilesCount ()
 
static CpuProfileGetProfile (Object *security_token, int index)
 
static CpuProfileFindProfile (Object *security_token, unsigned uid)
 
static void DeleteAllProfiles ()
 
static void DeleteProfile (CpuProfile *profile)
 
static bool HasDetachedProfiles ()
 
static TickSampleTickSampleEvent (Isolate *isolate)
 
static void CallbackEvent (String *name, Address entry_point)
 
static void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, const char *comment)
 
static void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, String *name)
 
static void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, String *name)
 
static void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, String *source, int line)
 
static void CodeCreateEvent (Logger::LogEventsAndTags tag, Code *code, int args_count)
 
static void CodeMovingGCEvent ()
 
static void CodeMoveEvent (Address from, Address to)
 
static void CodeDeleteEvent (Address from)
 
static void GetterCallbackEvent (String *name, Address entry_point)
 
static void RegExpCodeCreateEvent (Code *code, String *source)
 
static void SetterCallbackEvent (String *name, Address entry_point)
 
static void SharedFunctionInfoMoveEvent (Address from, Address to)
 
static INLINE (bool is_profiling(Isolate *isolate))
 

Detailed Description

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

Member Function Documentation

void CallbackEvent ( String name,
Address  entry_point 
)
static

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

References CodeEntry::kEmptyNamePrefix.

void CodeCreateEvent ( Logger::LogEventsAndTags  tag,
Code code,
const char *  comment 
)
static

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

References HeapObject::address(), and Code::ExecutableSize().

void CodeCreateEvent ( Logger::LogEventsAndTags  tag,
Code code,
String name 
)
static
void CodeCreateEvent ( Logger::LogEventsAndTags  tag,
Code code,
SharedFunctionInfo shared,
String name 
)
static
void CodeCreateEvent ( Logger::LogEventsAndTags  tag,
Code code,
SharedFunctionInfo shared,
String source,
int  line 
)
static
void CodeCreateEvent ( Logger::LogEventsAndTags  tag,
Code code,
int  args_count 
)
static

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

References HeapObject::address(), and Code::ExecutableSize().

void CodeDeleteEvent ( Address  from)
static

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

void CodeMoveEvent ( Address  from,
Address  to 
)
static

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

static void CodeMovingGCEvent ( )
inlinestatic

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

void DeleteAllProfiles ( )
static

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

References ASSERT, and v8::internal::NULL.

Referenced by CpuProfile::Delete(), and CpuProfiler::DeleteAllProfiles().

void DeleteProfile ( CpuProfile profile)
static

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

References ASSERT, and v8::internal::NULL.

Referenced by CpuProfile::Delete().

CpuProfile * FindProfile ( Object security_token,
unsigned  uid 
)
static
CpuProfile * GetProfile ( Object security_token,
int  index 
)
static
int GetProfilesCount ( )
static
void GetterCallbackEvent ( String name,
Address  entry_point 
)
static

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

bool HasDetachedProfiles ( )
static

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

References ASSERT, and v8::internal::NULL.

Referenced by CpuProfile::Delete().

static INLINE ( bool   is_profilingIsolate *isolate)
inlinestatic

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

References v8::internal::NoBarrier_Load(), and NULL.

void RegExpCodeCreateEvent ( Code code,
String source 
)
static

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

References HeapObject::address(), and Code::ExecutableSize().

void SetterCallbackEvent ( String name,
Address  entry_point 
)
static

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

void SetUp ( )
static

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

References v8::internal::NULL.

void SharedFunctionInfoMoveEvent ( Address  from,
Address  to 
)
static
void StartProfiling ( const char *  title)
static

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

References ASSERT, and v8::internal::NULL.

Referenced by CpuProfiler::StartProfiling().

void StartProfiling ( String title)
static

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

References ASSERT, and v8::internal::NULL.

CpuProfile * StopProfiling ( const char *  title)
static

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

References v8::internal::NULL.

Referenced by CpuProfiler::StopProfiling().

CpuProfile * StopProfiling ( Object security_token,
String title 
)
static

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

References v8::internal::NULL.

void TearDown ( )
static

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

References v8::internal::NULL.

TickSample * TickSampleEvent ( Isolate isolate)
static

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

References v8::internal::NULL.

Referenced by SamplerThread::SampleContext().


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