OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 class HeapSnapshotsCollection { | 289 class HeapSnapshotsCollection { |
290 public: | 290 public: |
291 explicit HeapSnapshotsCollection(Heap* heap); | 291 explicit HeapSnapshotsCollection(Heap* heap); |
292 ~HeapSnapshotsCollection(); | 292 ~HeapSnapshotsCollection(); |
293 | 293 |
294 Heap* heap() const { return ids_.heap(); } | 294 Heap* heap() const { return ids_.heap(); } |
295 | 295 |
296 SnapshotObjectId PushHeapObjectsStats(OutputStream* stream) { | 296 SnapshotObjectId PushHeapObjectsStats(OutputStream* stream) { |
297 return ids_.PushHeapObjectsStats(stream); | 297 return ids_.PushHeapObjectsStats(stream); |
298 } | 298 } |
299 void StartHeapObjectsTracking(); | 299 void StartHeapObjectsTracking(bool track_allocations); |
300 void StopHeapObjectsTracking(); | 300 void StopHeapObjectsTracking(); |
301 | 301 |
302 HeapSnapshot* NewSnapshot(const char* name, unsigned uid); | 302 HeapSnapshot* NewSnapshot(const char* name, unsigned uid); |
303 void SnapshotGenerationFinished(HeapSnapshot* snapshot); | 303 void SnapshotGenerationFinished(HeapSnapshot* snapshot); |
304 List<HeapSnapshot*>* snapshots() { return &snapshots_; } | 304 List<HeapSnapshot*>* snapshots() { return &snapshots_; } |
305 void RemoveSnapshot(HeapSnapshot* snapshot); | 305 void RemoveSnapshot(HeapSnapshot* snapshot); |
306 | 306 |
307 StringsStorage* names() { return &names_; } | 307 StringsStorage* names() { return &names_; } |
308 AllocationTracker* allocation_tracker() { return allocation_tracker_; } | 308 AllocationTracker* allocation_tracker() { return allocation_tracker_; } |
309 | 309 |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 friend class HeapSnapshotJSONSerializerEnumerator; | 692 friend class HeapSnapshotJSONSerializerEnumerator; |
693 friend class HeapSnapshotJSONSerializerIterator; | 693 friend class HeapSnapshotJSONSerializerIterator; |
694 | 694 |
695 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 695 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
696 }; | 696 }; |
697 | 697 |
698 | 698 |
699 } } // namespace v8::internal | 699 } } // namespace v8::internal |
700 | 700 |
701 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ | 701 #endif // V8_HEAP_SNAPSHOT_GENERATOR_H_ |
OLD | NEW |