v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <profiler-extension.h>
Public Member Functions | |
ProfilerExtension () | |
virtual v8::Handle < v8::FunctionTemplate > | GetNativeFunctionTemplate (v8::Isolate *isolate, v8::Handle< v8::String > name) |
Public Member Functions inherited from Extension | |
Extension (const char *name, const char *source=0, int dep_count=0, const char **deps=0, int source_length=-1) | |
virtual | ~Extension () |
const char * | name () const |
size_t | source_length () const |
const String::ExternalAsciiStringResource * | source () const |
int | dependency_count () |
const char ** | dependencies () |
void | set_auto_enable (bool value) |
bool | auto_enable () |
Static Public Member Functions | |
static void | StartProfiling (const v8::FunctionCallbackInfo< v8::Value > &args) |
static void | StopProfiling (const v8::FunctionCallbackInfo< v8::Value > &args) |
Static Public Attributes | |
static const v8::CpuProfile * | last_profile = NULL |
Definition at line 38 of file profiler-extension.h.
|
inline |
Definition at line 40 of file profiler-extension.h.
|
virtual |
Reimplemented from Extension.
Definition at line 42 of file profiler-extension.cc.
References CHECK, Value::Equals(), FunctionTemplate::New(), String::NewFromUtf8(), ProfilerExtension::StartProfiling(), and ProfilerExtension::StopProfiling().
|
static |
Definition at line 57 of file profiler-extension.cc.
References String::Empty(), FunctionCallbackInfo< T >::GetIsolate(), ProfilerExtension::last_profile, FunctionCallbackInfo< T >::Length(), v8::internal::NULL, and CpuProfiler::StartCpuProfiling().
Referenced by ProfilerExtension::GetNativeFunctionTemplate().
|
static |
Definition at line 67 of file profiler-extension.cc.
References String::Empty(), FunctionCallbackInfo< T >::GetIsolate(), ProfilerExtension::last_profile, FunctionCallbackInfo< T >::Length(), and CpuProfiler::StopCpuProfiling().
Referenced by ProfilerExtension::GetNativeFunctionTemplate().
|
static |
Definition at line 46 of file profiler-extension.h.
Referenced by ProfilerExtension::StartProfiling(), ProfilerExtension::StopProfiling(), and TEST().