v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <statistics-extension.h>
Public Member Functions | |
StatisticsExtension () | |
virtual v8::Handle < v8::FunctionTemplate > | GetNativeFunction (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 v8::Handle< v8::Value > | GetCounters (const v8::Arguments &args) |
static void | Register () |
Definition at line 36 of file statistics-extension.h.
|
inline |
Definition at line 38 of file statistics-extension.h.
|
static |
Definition at line 61 of file statistics-extension.cc.
References ADD_COUNTER, Heap::amount_of_external_allocated_memory(), PagedSpace::Available(), NewSpace::Available(), LargeObjectSpace::Available(), Heap::cell_space(), CODE_KIND_LIST, Heap::code_space(), Heap::CollectAllGarbage(), PagedSpace::CommittedMemory(), NewSpace::CommittedMemory(), LargeObjectSpace::CommittedMemory(), Isolate::counters(), FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST, Isolate::heap(), INSTANCE_TYPE_LIST, Heap::kNoGCFlags, Arguments::Length(), Heap::lo_space(), Isolate::memory_allocator(), Object::New(), Heap::new_space(), Heap::old_data_space(), Heap::old_pointer_space(), MemoryAllocator::Size(), PagedSpace::Size(), NewSpace::Size(), LargeObjectSpace::Size(), STATS_COUNTER_LIST_1, and STATS_COUNTER_LIST_2.
Referenced by StatisticsExtension::GetNativeFunction().
|
virtual |
Reimplemented from Extension.
Definition at line 37 of file statistics-extension.cc.
References ASSERT, StatisticsExtension::GetCounters(), and FunctionTemplate::New().
|
static |
Definition at line 148 of file statistics-extension.cc.
Referenced by Bootstrapper::Initialize().