Index: src/heap-snapshot-generator.h |
diff --git a/src/heap-snapshot-generator.h b/src/heap-snapshot-generator.h |
index b8199ba437ce136c3ef7c6599d8632f477bd11fb..f78db55b6264a0d88e15bab55f3a6ff18232ee32 100644 |
--- a/src/heap-snapshot-generator.h |
+++ b/src/heap-snapshot-generator.h |
@@ -33,8 +33,6 @@ |
namespace v8 { |
namespace internal { |
-class AllocationTracker; |
-class AllocationTraceNode; |
class HeapEntry; |
class HeapSnapshot; |
@@ -298,8 +296,8 @@ class HeapSnapshotsCollection { |
SnapshotObjectId PushHeapObjectsStats(OutputStream* stream) { |
return ids_.PushHeapObjectsStats(stream); |
} |
- void StartHeapObjectsTracking(); |
- void StopHeapObjectsTracking(); |
+ void StartHeapObjectsTracking() { is_tracking_objects_ = true; } |
+ void StopHeapObjectsTracking() { ids_.StopHeapObjectsTracking(); } |
HeapSnapshot* NewSnapshot(const char* name, unsigned uid); |
void SnapshotGenerationFinished(HeapSnapshot* snapshot); |
@@ -307,7 +305,6 @@ class HeapSnapshotsCollection { |
void RemoveSnapshot(HeapSnapshot* snapshot); |
StringsStorage* names() { return &names_; } |
- AllocationTracker* allocation_tracker() { return allocation_tracker_; } |
SnapshotObjectId FindObjectId(Address object_addr) { |
return ids_.FindEntry(object_addr); |
@@ -319,7 +316,7 @@ class HeapSnapshotsCollection { |
void ObjectMoveEvent(Address from, Address to, int size) { |
ids_.MoveObject(from, to, size); |
} |
- void NewObjectEvent(Address addr, int size); |
+ void NewObjectEvent(Address addr, int size) { ids_.NewObject(addr, size); } |
void UpdateObjectSizeEvent(Address addr, int size) { |
ids_.UpdateObjectSize(addr, size); |
} |
@@ -338,7 +335,6 @@ class HeapSnapshotsCollection { |
StringsStorage names_; |
// Mapping from HeapObject addresses to objects' uids. |
HeapObjectsMap ids_; |
- AllocationTracker* allocation_tracker_; |
DISALLOW_COPY_AND_ASSIGN(HeapSnapshotsCollection); |
}; |
@@ -679,9 +675,6 @@ class HeapSnapshotJSONSerializer { |
void SerializeNode(HeapEntry* entry); |
void SerializeNodes(); |
void SerializeSnapshot(); |
- void SerializeTraceTree(); |
- void SerializeTraceNode(AllocationTraceNode* node); |
- void SerializeTraceNodeInfos(); |
void SerializeString(const unsigned char* s); |
void SerializeStrings(); |