11 "native function getV8Statistics();";
56 if (args[0]->IsBoolean() && args[0]->ToBoolean()->Value()) {
64 #define ADD_COUNTER(name, caption) \
65 AddCounter(args.GetIsolate(), result, counters->name(), #name);
70 #define ADD_COUNTER(name) \
71 AddCounter(args.GetIsolate(), result, counters->count_of_##name(), \
73 AddCounter(args.GetIsolate(), result, counters->size_of_##name(), \
78 #define ADD_COUNTER(name) \
79 AddCounter(args.GetIsolate(), result, counters->count_of_CODE_TYPE_##name(), \
80 "count_of_CODE_TYPE_" #name); \
81 AddCounter(args.GetIsolate(), result, counters->size_of_CODE_TYPE_##name(), \
82 "size_of_CODE_TYPE_" #name);
86 #define ADD_COUNTER(name) \
87 AddCounter(args.GetIsolate(), result, \
88 counters->count_of_FIXED_ARRAY_##name(), \
89 "count_of_FIXED_ARRAY_" #name); \
90 AddCounter(args.GetIsolate(), result, \
91 counters->size_of_FIXED_ARRAY_##name(), \
92 "size_of_FIXED_ARRAY_" #name);
98 "total_committed_bytes");
100 "new_space_live_bytes");
102 "new_space_available_bytes");
104 "new_space_commited_bytes");
106 "old_pointer_space_live_bytes");
108 "old_pointer_space_available_bytes");
111 "old_pointer_space_commited_bytes");
113 "old_data_space_live_bytes");
115 "old_data_space_available_bytes");
118 "old_data_space_commited_bytes");
120 "code_space_live_bytes");
122 "code_space_available_bytes");
124 "code_space_commited_bytes");
126 "cell_space_live_bytes");
128 "cell_space_available_bytes");
130 "cell_space_commited_bytes");
132 "property_cell_space_live_bytes");
134 "property_cell_space_available_bytes");
137 "property_cell_space_commited_bytes");
139 "lo_space_live_bytes");
141 "lo_space_available_bytes");
143 "lo_space_commited_bytes");
146 "amount_of_external_allocated_memory");
The argument information given to function call callbacks.
ReturnValue< T > GetReturnValue() const
Isolate * GetIsolate() const
static Local< FunctionTemplate > New(Isolate *isolate, FunctionCallback callback=0, Handle< Value > data=Handle< Value >(), Handle< Signature > signature=Handle< Signature >(), int length=0)
Creates a function template.
An object reference managed by the v8 garbage collector.
Isolate represents an isolated instance of the V8 engine.
A light-weight stack-allocated object handle.
static Local< Number > New(Isolate *isolate, double value)
static Local< Object > New(Isolate *isolate)
Converts an object to a UTF-8-encoded character array.
static Local< String > NewFromUtf8(Isolate *isolate, const char *data, NewStringType type=kNormalString, int length=-1)
Allocates a new string from UTF-8 data.
OldSpace * old_pointer_space()
PropertyCellSpace * property_cell_space()
int64_t amount_of_external_allocated_memory()
LargeObjectSpace * lo_space()
static const int kNoGCFlags
OldSpace * old_data_space()
void CollectAllGarbage(int flags, const char *gc_reason=NULL, const GCCallbackFlags gc_callback_flags=kNoGCCallbackFlags)
MemoryAllocator * memory_allocator()
intptr_t CommittedMemory()
intptr_t CommittedMemory()
intptr_t CommittedMemory()
virtual v8::Handle< v8::FunctionTemplate > GetNativeFunctionTemplate(v8::Isolate *isolate, v8::Handle< v8::String > name)
static void GetCounters(const v8::FunctionCallbackInfo< v8::Value > &args)
static const char *const kSource
int * GetInternalPointer()
#define STATS_COUNTER_LIST_1(SC)
#define STATS_COUNTER_LIST_2(SC)
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
#define DCHECK(condition)
static void AddCounter(v8::Isolate *isolate, v8::Local< v8::Object > object, StatsCounter *counter, const char *name)
static void AddNumber64(v8::Isolate *isolate, v8::Local< v8::Object > object, int64_t value, const char *name)
static void AddNumber(v8::Isolate *isolate, v8::Local< v8::Object > object, intptr_t value, const char *name)
Debugger support for the V8 JavaScript engine.
#define INSTANCE_TYPE_LIST(V)
#define CODE_KIND_LIST(V)
#define FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(V)
#define ADD_COUNTER(name, caption)