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

Unified Diff: src/heap-profiler.h

Issue 12475016: Maintain API compatibility with older versions of V8. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 months 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 | « src/heap.cc ('k') | src/heap-profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap-profiler.h
diff --git a/src/heap-profiler.h b/src/heap-profiler.h
index 3f3138db523683180b564193ae8e7830f1954a27..c8c94f58d60f485c646b57e08fa70f7741790541 100644
--- a/src/heap-profiler.h
+++ b/src/heap-profiler.h
@@ -46,28 +46,30 @@ class HeapSnapshotsCollection;
class HeapProfiler {
public:
- explicit HeapProfiler(Heap* heap);
- ~HeapProfiler();
+ static void SetUp();
+ static void TearDown();
- size_t GetMemorySizeUsedByProfiler();
+ static size_t GetMemorySizeUsedByProfiler();
- HeapSnapshot* TakeSnapshot(
+ static HeapSnapshot* TakeSnapshot(
const char* name,
+ int type,
v8::ActivityControl* control,
v8::HeapProfiler::ObjectNameResolver* resolver);
- HeapSnapshot* TakeSnapshot(
+ static HeapSnapshot* TakeSnapshot(
String* name,
+ int type,
v8::ActivityControl* control,
v8::HeapProfiler::ObjectNameResolver* resolver);
- void StartHeapObjectsTracking();
- void StopHeapObjectsTracking();
- SnapshotObjectId PushHeapObjectsStats(OutputStream* stream);
- int GetSnapshotsCount();
- HeapSnapshot* GetSnapshot(int index);
- HeapSnapshot* FindSnapshot(unsigned uid);
- SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj);
- void DeleteAllSnapshots();
+ static void StartHeapObjectsTracking();
+ static void StopHeapObjectsTracking();
+ static SnapshotObjectId PushHeapObjectsStats(OutputStream* stream);
+ static int GetSnapshotsCount();
+ static HeapSnapshot* GetSnapshot(int index);
+ static HeapSnapshot* FindSnapshot(unsigned uid);
+ static SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj);
+ static void DeleteAllSnapshots();
void ObjectMoveEvent(Address from, Address to);
@@ -81,6 +83,24 @@ class HeapProfiler {
}
private:
+ explicit HeapProfiler(Heap* heap);
+ ~HeapProfiler();
+ HeapSnapshot* TakeSnapshotImpl(
+ const char* name,
+ int type,
+ v8::ActivityControl* control,
+ v8::HeapProfiler::ObjectNameResolver* resolver);
+ HeapSnapshot* TakeSnapshotImpl(
+ String* name,
+ int type,
+ v8::ActivityControl* control,
+ v8::HeapProfiler::ObjectNameResolver* resolver);
+ void ResetSnapshots();
+
+ void StartHeapObjectsTrackingImpl();
+ void StopHeapObjectsTrackingImpl();
+ SnapshotObjectId PushHeapObjectsStatsImpl(OutputStream* stream);
+
Heap* heap() const { return snapshots_->heap(); }
HeapSnapshotsCollection* snapshots_;
« no previous file with comments | « src/heap.cc ('k') | src/heap-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698