Index: src/heap-profiler.h |
diff --git a/src/heap-profiler.h b/src/heap-profiler.h |
index c8c94f58d60f485c646b57e08fa70f7741790541..75b1af1f88de7bfc03807eb7aa23ac03438c0a6f 100644 |
--- a/src/heap-profiler.h |
+++ b/src/heap-profiler.h |
@@ -46,30 +46,30 @@ class HeapSnapshotsCollection; |
class HeapProfiler { |
public: |
- static void SetUp(); |
- static void TearDown(); |
+ explicit HeapProfiler(Heap* heap); |
+ ~HeapProfiler(); |
- static size_t GetMemorySizeUsedByProfiler(); |
+ size_t GetMemorySizeUsedByProfiler(); |
- static HeapSnapshot* TakeSnapshot( |
+ HeapSnapshot* TakeSnapshot( |
const char* name, |
int type, |
v8::ActivityControl* control, |
v8::HeapProfiler::ObjectNameResolver* resolver); |
- static HeapSnapshot* TakeSnapshot( |
+ HeapSnapshot* TakeSnapshot( |
String* name, |
int type, |
v8::ActivityControl* control, |
v8::HeapProfiler::ObjectNameResolver* resolver); |
- 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 StartHeapObjectsTracking(); |
+ void StopHeapObjectsTracking(); |
+ SnapshotObjectId PushHeapObjectsStats(OutputStream* stream); |
+ int GetSnapshotsCount(); |
+ HeapSnapshot* GetSnapshot(int index); |
+ HeapSnapshot* FindSnapshot(unsigned uid); |
+ SnapshotObjectId GetSnapshotObjectId(Handle<Object> obj); |
+ void DeleteAllSnapshots(); |
void ObjectMoveEvent(Address from, Address to); |
@@ -83,24 +83,6 @@ 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_; |