v8-profiler.h | v8-profiler.h | |||
---|---|---|---|---|
skipping to change at line 421 | skipping to change at line 421 | |||
*/ | */ | |||
const HeapSnapshot* TakeHeapSnapshot( | const HeapSnapshot* TakeHeapSnapshot( | |||
Handle<String> title, | Handle<String> title, | |||
ActivityControl* control = NULL, | ActivityControl* control = NULL, | |||
ObjectNameResolver* global_object_name_resolver = NULL); | ObjectNameResolver* global_object_name_resolver = NULL); | |||
/** | /** | |||
* Starts tracking of heap objects population statistics. After calling | * Starts tracking of heap objects population statistics. After calling | |||
* this method, all heap objects relocations done by the garbage collecto r | * this method, all heap objects relocations done by the garbage collecto r | |||
* are being registered. | * are being registered. | |||
* | ||||
* |track_allocations| parameter controls whether stack trace of each | ||||
* allocation in the heap will be recorded and reported as part of | ||||
* HeapSnapshot. | ||||
*/ | */ | |||
void StartTrackingHeapObjects(); | void StartTrackingHeapObjects(bool track_allocations = false); | |||
/** | /** | |||
* Adds a new time interval entry to the aggregated statistics array. The | * Adds a new time interval entry to the aggregated statistics array. The | |||
* time interval entry contains information on the current heap objects | * time interval entry contains information on the current heap objects | |||
* population size. The method also updates aggregated statistics and | * population size. The method also updates aggregated statistics and | |||
* reports updates for all previous time intervals via the OutputStream | * reports updates for all previous time intervals via the OutputStream | |||
* object. Updates on each time interval are provided as a stream of the | * object. Updates on each time interval are provided as a stream of the | |||
* HeapStatsUpdate structure instances. | * HeapStatsUpdate structure instances. | |||
* The return value of the function is the last seen heap object Id. | * The return value of the function is the last seen heap object Id. | |||
* | * | |||
skipping to change at line 475 | skipping to change at line 479 | |||
/** | /** | |||
* Sets a RetainedObjectInfo for an object group (see V8::SetObjectGroupI d). | * Sets a RetainedObjectInfo for an object group (see V8::SetObjectGroupI d). | |||
*/ | */ | |||
void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info); | void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info); | |||
/** | /** | |||
* Starts recording JS allocations immediately as they arrive and trackin g of | * Starts recording JS allocations immediately as they arrive and trackin g of | |||
* heap objects population statistics. | * heap objects population statistics. | |||
*/ | */ | |||
void StartRecordingHeapAllocations(); | V8_DEPRECATED("Use StartTrackingHeapObjects instead", | |||
void StartRecordingHeapAllocations()); | ||||
/** | /** | |||
* Stops recording JS allocations and tracking of heap objects population | * Stops recording JS allocations and tracking of heap objects population | |||
* statistics, cleans all collected heap objects population statistics da ta. | * statistics, cleans all collected heap objects population statistics da ta. | |||
*/ | */ | |||
void StopRecordingHeapAllocations(); | V8_DEPRECATED("Use StopTrackingHeapObjects instead", | |||
void StopRecordingHeapAllocations()); | ||||
private: | private: | |||
HeapProfiler(); | HeapProfiler(); | |||
~HeapProfiler(); | ~HeapProfiler(); | |||
HeapProfiler(const HeapProfiler&); | HeapProfiler(const HeapProfiler&); | |||
HeapProfiler& operator=(const HeapProfiler&); | HeapProfiler& operator=(const HeapProfiler&); | |||
}; | }; | |||
/** | /** | |||
* Interface for providing information about embedder's objects | * Interface for providing information about embedder's objects | |||
End of changes. 4 change blocks. | ||||
3 lines changed or deleted | 9 lines changed or added | |||