v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <cpu-profiler.h>
Public Member Functions | |
ProfilerEventsProcessor (ProfileGenerator *generator, Sampler *sampler, TimeDelta period) | |
virtual | ~ProfilerEventsProcessor () |
virtual void | Run () |
void | StopSynchronously () |
INLINE (bool running()) | |
void | Enqueue (const CodeEventsContainer &event) |
void | AddCurrentStack (Isolate *isolate) |
TickSample * | StartTickSample () |
void | FinishTickSample () |
void * | operator new (size_t size) |
void | operator delete (void *ptr) |
Public Member Functions inherited from Thread | |
Thread (const Options &options) | |
virtual | ~Thread () |
void | Start () |
void | StartSynchronously () |
void | Join () |
const char * | name () const |
PlatformData * | data () |
void | NotifyStartedAndRun () |
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 138 of file cpu-profiler.h.
ProfilerEventsProcessor | ( | ProfileGenerator * | generator, |
Sampler * | sampler, | ||
TimeDelta | period | ||
) |
Definition at line 46 of file cpu-profiler.cc.
|
inlinevirtual |
Definition at line 143 of file cpu-profiler.h.
void AddCurrentStack | ( | Isolate * | isolate | ) |
Definition at line 65 of file cpu-profiler.cc.
References RegisterState::fp, StackFrameIterator::frame(), TickSample::Init(), RegisterState::pc, TickSampleEventRecord::sample, and RegisterState::sp.
Referenced by CpuProfiler::StartProfiling(), and TEST().
void Enqueue | ( | const CodeEventsContainer & | event | ) |
Definition at line 59 of file cpu-profiler.cc.
Referenced by CpuProfiler::CallbackEvent(), CpuProfiler::CodeCreateEvent(), CpuProfiler::CodeMoveEvent(), CpuProfiler::GetterCallbackEvent(), CpuProfiler::RegExpCodeCreateEvent(), CpuProfiler::SetterCallbackEvent(), and CpuProfiler::SharedFunctionInfoMoveEvent().
|
inline |
Definition at line 90 of file cpu-profiler-inl.h.
Referenced by CpuProfiler::FinishTickSample().
|
inline |
Definition at line 148 of file cpu-profiler.h.
void operator delete | ( | void * | ptr | ) |
Definition at line 164 of file cpu-profiler.cc.
References v8::internal::AlignedFree().
void * operator new | ( | size_t | size | ) |
Definition at line 159 of file cpu-profiler.cc.
References v8::internal::AlignedAlloc(), v8::internal::size, and V8_ALIGNOF.
|
virtual |
|
inline |
Definition at line 81 of file cpu-profiler-inl.h.
References v8::internal::NULL, and TickSampleEventRecord::sample.
Referenced by CpuProfiler::StartTickSample().
void StopSynchronously | ( | ) |
Definition at line 80 of file cpu-profiler.cc.
References Thread::Join().