28 #ifndef V8_V8_PROFILER_H_
29 #define V8_V8_PROFILER_H_
52 int GetScriptId()
const;
61 int GetLineNumber()
const;
67 int GetColumnNumber()
const;
77 unsigned GetHitCount()
const;
80 unsigned GetCallUid()
const;
83 unsigned GetNodeId()
const;
86 int GetChildrenCount()
const;
112 int GetSamplesCount()
const;
124 int64_t GetStartTime()
const;
130 int64_t GetEndTime()
const;
151 void SetSamplingInterval(
int us);
164 void StartProfiling(
Handle<String> title,
bool record_samples =
false);
167 void StartCpuProfiling(
Handle<String> title,
bool record_samples =
false);
181 void SetIdle(
bool is_idle);
198 kContextVariable = 0,
212 Type GetType()
const;
250 Type GetType()
const;
267 int GetSelfSize()
const);
270 size_t GetShallowSize()
const;
273 int GetChildrenCount()
const;
291 virtual void EndOfStream() = 0;
299 virtual WriteResult WriteAsciiChunk(
char* data,
int size) = 0;
321 unsigned GetUid()
const;
333 int GetNodesCount()
const;
374 void Serialize(
OutputStream* stream, SerializationFormat format)
const;
393 virtual ControlOption ReportProgressValue(
int done,
int total) = 0;
413 int GetSnapshotCount();
435 void ClearObjectIds();
464 ObjectNameResolver* global_object_name_resolver =
NULL);
475 void StartTrackingHeapObjects(
bool track_allocations =
false);
496 void StopTrackingHeapObjects();
502 void DeleteAllHeapSnapshots();
505 void SetWrapperClassInfoProvider(
507 WrapperInfoCallback callback);
514 static const uint16_t kPersistentHandleNoClassId = 0;
517 size_t GetProfilerMemorySize();
559 virtual void Dispose() = 0;
568 virtual intptr_t GetHash() = 0;
574 virtual const char* GetLabel() = 0;
612 : index(index), count(count), size(size) { }
622 #endif // V8_V8_PROFILER_H_
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter NULL
virtual ~ObjectNameResolver()
TypeImpl< ZoneTypeConfig > Type
static const int kNoColumnInfo
static const int kNoLineNumberInfo
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object size
virtual int GetChunkSize()
HeapStatsUpdate(uint32_t index, uint32_t count, uint32_t size)
virtual WriteResult WriteHeapStatsChunk(HeapStatsUpdate *data, int count)
virtual ~RetainedObjectInfo()
virtual ~ActivityControl()
#define V8_DEPRECATED(message, declarator)
const char * GetBailoutReason(BailoutReason reason)
uint32_t SnapshotObjectId
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter trace hydrogen to given file name trace inlining decisions trace store elimination trace all use positions trace global value numbering trace hydrogen escape analysis trace the tracking of allocation sites trace map generalization environment for every instruction deoptimize every n garbage collections put a break point before deoptimizing deoptimize uncommon cases use on stack replacement trace array bounds check elimination perform array index dehoisting use load elimination use store elimination use constant folding eliminate unreachable code number of stress runs when picking a function to watch for shared function info
virtual intptr_t GetElementCount()
virtual intptr_t GetSizeInBytes()
virtual const char * GetGroupLabel()