v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <cpu-profiler.h>
Public Member Functions | |
ProfilerEventsProcessor (ProfileGenerator *generator) | |
virtual | ~ProfilerEventsProcessor () |
virtual void | Run () |
void | Stop () |
INLINE (bool running()) | |
void | CallbackCreateEvent (Logger::LogEventsAndTags tag, const char *prefix, String *name, Address start) |
void | CodeCreateEvent (Logger::LogEventsAndTags tag, String *name, String *resource_name, int line_number, Address start, unsigned size, Address shared) |
void | CodeCreateEvent (Logger::LogEventsAndTags tag, const char *name, Address start, unsigned size) |
void | CodeCreateEvent (Logger::LogEventsAndTags tag, int args_count, Address start, unsigned size) |
void | CodeMoveEvent (Address from, Address to) |
void | CodeDeleteEvent (Address from) |
void | SharedFunctionInfoMoveEvent (Address from, Address to) |
void | RegExpCodeCreateEvent (Logger::LogEventsAndTags tag, const char *prefix, String *name, Address start, unsigned size) |
void | AddCurrentStack () |
INLINE (TickSample *TickSampleEvent()) | |
Public Member Functions inherited from Thread | |
Thread (const Options &options) | |
virtual | ~Thread () |
void | Start () |
void | Join () |
const char * | name () const |
PlatformData * | data () |
Additional Inherited Members | |
Public Types inherited from Thread | |
enum | LocalStorageKey { LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt, LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt } |
Static Public Member Functions inherited from Thread | |
static LocalStorageKey | CreateThreadLocalKey () |
static void | DeleteThreadLocalKey (LocalStorageKey key) |
static void * | GetThreadLocal (LocalStorageKey key) |
static int | GetThreadLocalInt (LocalStorageKey key) |
static void | SetThreadLocal (LocalStorageKey key, void *value) |
static void | SetThreadLocalInt (LocalStorageKey key, int value) |
static bool | HasThreadLocal (LocalStorageKey key) |
static void * | GetExistingThreadLocal (LocalStorageKey key) |
static void | YieldCPU () |
Static Public Attributes inherited from Thread | |
static const int | kMaxThreadNameLength = 16 |
Definition at line 125 of file cpu-profiler.h.
|
explicit |
Definition at line 48 of file cpu-profiler.cc.
|
inlinevirtual |
Definition at line 128 of file cpu-profiler.h.
void AddCurrentStack | ( | ) |
Definition at line 172 of file cpu-profiler.cc.
References Isolate::current_vm_state(), TickSample::frames_count, TickSample::kMaxFramesCount, TickSample::pc, sample, TickSampleEventRecord::sample, TickSample::stack, and TickSample::state.
void CallbackCreateEvent | ( | Logger::LogEventsAndTags | tag, |
const char * | prefix, | ||
String * | name, | ||
Address | start | ||
) |
Definition at line 59 of file cpu-profiler.cc.
References CodeCreateEventRecord::entry, v8::internal::NULL, CodeEventRecord::order, CodeCreateEventRecord::shared, CodeCreateEventRecord::size, CodeCreateEventRecord::start, and CodeEventRecord::type.
void CodeCreateEvent | ( | Logger::LogEventsAndTags | tag, |
String * | name, | ||
String * | resource_name, | ||
int | line_number, | ||
Address | start, | ||
unsigned | size, | ||
Address | shared | ||
) |
Definition at line 76 of file cpu-profiler.cc.
References CodeCreateEventRecord::entry, CodeEventRecord::order, CodeCreateEventRecord::shared, CodeCreateEventRecord::size, CodeCreateEventRecord::start, and CodeEventRecord::type.
void CodeCreateEvent | ( | Logger::LogEventsAndTags | tag, |
const char * | name, | ||
Address | start, | ||
unsigned | size | ||
) |
Definition at line 96 of file cpu-profiler.cc.
References CodeCreateEventRecord::entry, v8::internal::NULL, CodeEventRecord::order, CodeCreateEventRecord::shared, CodeCreateEventRecord::size, CodeCreateEventRecord::start, and CodeEventRecord::type.
void CodeCreateEvent | ( | Logger::LogEventsAndTags | tag, |
int | args_count, | ||
Address | start, | ||
unsigned | size | ||
) |
Definition at line 113 of file cpu-profiler.cc.
References CodeCreateEventRecord::entry, v8::internal::NULL, CodeEventRecord::order, CodeCreateEventRecord::shared, CodeCreateEventRecord::size, CodeCreateEventRecord::start, and CodeEventRecord::type.
void CodeDeleteEvent | ( | Address | from | ) |
Definition at line 130 of file cpu-profiler.cc.
References CodeMoveEventRecord::from, CodeEventRecord::order, CodeMoveEventRecord::to, and CodeEventRecord::type.
|
inline |
Definition at line 133 of file cpu-profiler.h.
INLINE | ( | TickSample * | TickSampleEvent() | ) |
void RegExpCodeCreateEvent | ( | Logger::LogEventsAndTags | tag, |
const char * | prefix, | ||
String * | name, | ||
Address | start, | ||
unsigned | size | ||
) |
Definition at line 154 of file cpu-profiler.cc.
References CodeCreateEventRecord::entry, CodeEventRecord::order, CodeCreateEventRecord::size, CodeCreateEventRecord::start, and CodeEventRecord::type.
|
virtual |
Implements Thread.
Definition at line 242 of file cpu-profiler.cc.
References SamplingCircularQueue::FlushResidualRecords(), and Thread::YieldCPU().
Definition at line 141 of file cpu-profiler.cc.
References SharedFunctionInfoMoveEventRecord::from, CodeEventRecord::order, SharedFunctionInfoMoveEventRecord::to, and CodeEventRecord::type.
Referenced by CpuProfiler::SharedFunctionInfoMoveEvent().
|
inline |
Definition at line 132 of file cpu-profiler.h.