Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: include/v8-profiler.h

Issue 96933003: Simplify allocation tracker API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-profiler.h
diff --git a/include/v8-profiler.h b/include/v8-profiler.h
index 0882d6452732373293bf6deb2a4e3ba92c3eff0e..0ed6c5d216b3f8708bea6ae794937b18f844591f 100644
--- a/include/v8-profiler.h
+++ b/include/v8-profiler.h
@@ -425,8 +425,12 @@ class V8_EXPORT HeapProfiler {
* Starts tracking of heap objects population statistics. After calling
* this method, all heap objects relocations done by the garbage collector
* 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
@@ -479,13 +483,15 @@ class V8_EXPORT HeapProfiler {
* Starts recording JS allocations immediately as they arrive and tracking of
* heap objects population statistics.
*/
- void StartRecordingHeapAllocations();
+ V8_DEPRECATED("Use StartTrackingHeapObjects instead",
+ void StartRecordingHeapAllocations());
/**
* Stops recording JS allocations and tracking of heap objects population
* statistics, cleans all collected heap objects population statistics data.
*/
- void StopRecordingHeapAllocations();
+ V8_DEPRECATED("Use StopTrackingHeapObjects instead",
+ void StopRecordingHeapAllocations());
private:
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698