v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <statistics-extension.h>
Public Member Functions | |
StatisticsExtension () | |
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 | GetCounters (const v8::FunctionCallbackInfo< v8::Value > &args) |
Definition at line 36 of file statistics-extension.h.
|
inline |
Definition at line 38 of file statistics-extension.h.
|
static |
Definition at line 73 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, FunctionCallbackInfo< T >::GetIsolate(), FunctionCallbackInfo< T >::GetReturnValue(), Isolate::heap(), INSTANCE_TYPE_LIST, Heap::kNoGCFlags, FunctionCallbackInfo< T >::Length(), Heap::lo_space(), Isolate::memory_allocator(), Object::New(), Heap::new_space(), Heap::old_data_space(), Heap::old_pointer_space(), Heap::property_cell_space(), MemoryAllocator::Size(), PagedSpace::Size(), NewSpace::Size(), LargeObjectSpace::Size(), STATS_COUNTER_LIST_1, and STATS_COUNTER_LIST_2.
Referenced by StatisticsExtension::GetNativeFunctionTemplate().
|
virtual |
Reimplemented from Extension.
Definition at line 37 of file statistics-extension.cc.
References ASSERT, StatisticsExtension::GetCounters(), and FunctionTemplate::New().