OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 class HeapSnapshotsCollection; | 631 class HeapSnapshotsCollection; |
632 | 632 |
633 // HeapSnapshot represents a single heap snapshot. It is stored in | 633 // HeapSnapshot represents a single heap snapshot. It is stored in |
634 // HeapSnapshotsCollection, which is also a factory for | 634 // HeapSnapshotsCollection, which is also a factory for |
635 // HeapSnapshots. All HeapSnapshots share strings copied from JS heap | 635 // HeapSnapshots. All HeapSnapshots share strings copied from JS heap |
636 // to be able to return them even if they were collected. | 636 // to be able to return them even if they were collected. |
637 // HeapSnapshotGenerator fills in a HeapSnapshot. | 637 // HeapSnapshotGenerator fills in a HeapSnapshot. |
638 class HeapSnapshot { | 638 class HeapSnapshot { |
639 public: | 639 public: |
640 enum Type { | 640 enum Type { |
641 kFull = v8::HeapSnapshot::kFull, | 641 kFull = v8::HeapSnapshot::kFull |
642 kAggregated = v8::HeapSnapshot::kAggregated | |
643 }; | 642 }; |
644 | 643 |
645 HeapSnapshot(HeapSnapshotsCollection* collection, | 644 HeapSnapshot(HeapSnapshotsCollection* collection, |
646 Type type, | 645 Type type, |
647 const char* title, | 646 const char* title, |
648 unsigned uid); | 647 unsigned uid); |
649 ~HeapSnapshot(); | 648 ~HeapSnapshot(); |
650 void Delete(); | 649 void Delete(); |
651 | 650 |
652 HeapSnapshotsCollection* collection() { return collection_; } | 651 HeapSnapshotsCollection* collection() { return collection_; } |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 }; | 1120 }; |
1122 | 1121 |
1123 | 1122 |
1124 String* GetConstructorNameForHeapProfile(JSObject* object); | 1123 String* GetConstructorNameForHeapProfile(JSObject* object); |
1125 | 1124 |
1126 } } // namespace v8::internal | 1125 } } // namespace v8::internal |
1127 | 1126 |
1128 #endif // ENABLE_LOGGING_AND_PROFILING | 1127 #endif // ENABLE_LOGGING_AND_PROFILING |
1129 | 1128 |
1130 #endif // V8_PROFILE_GENERATOR_H_ | 1129 #endif // V8_PROFILE_GENERATOR_H_ |
OLD | NEW |