OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 HeapEntry* Map(HeapThing thing); | 827 HeapEntry* Map(HeapThing thing); |
828 void Pair(HeapThing thing, HeapEntriesAllocator* allocator, HeapEntry* entry); | 828 void Pair(HeapThing thing, HeapEntriesAllocator* allocator, HeapEntry* entry); |
829 void CountReference(HeapThing from, HeapThing to, | 829 void CountReference(HeapThing from, HeapThing to, |
830 int* prev_children_count = NULL, | 830 int* prev_children_count = NULL, |
831 int* prev_retainers_count = NULL); | 831 int* prev_retainers_count = NULL); |
832 | 832 |
833 int entries_count() { return entries_count_; } | 833 int entries_count() { return entries_count_; } |
834 int total_children_count() { return total_children_count_; } | 834 int total_children_count() { return total_children_count_; } |
835 int total_retainers_count() { return total_retainers_count_; } | 835 int total_retainers_count() { return total_retainers_count_; } |
836 | 836 |
837 static HeapEntry *const kHeapEntryPlaceholder; | 837 static HeapEntry* const kHeapEntryPlaceholder; |
838 | 838 |
839 private: | 839 private: |
840 struct EntryInfo { | 840 struct EntryInfo { |
841 EntryInfo(HeapEntry* entry, HeapEntriesAllocator* allocator) | 841 EntryInfo(HeapEntry* entry, HeapEntriesAllocator* allocator) |
842 : entry(entry), | 842 : entry(entry), |
843 allocator(allocator), | 843 allocator(allocator), |
844 children_count(0), | 844 children_count(0), |
845 retainers_count(0) { | 845 retainers_count(0) { |
846 } | 846 } |
847 HeapEntry* entry; | 847 HeapEntry* entry; |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 | 1156 |
1157 friend class HeapSnapshotJSONSerializerEnumerator; | 1157 friend class HeapSnapshotJSONSerializerEnumerator; |
1158 friend class HeapSnapshotJSONSerializerIterator; | 1158 friend class HeapSnapshotJSONSerializerIterator; |
1159 | 1159 |
1160 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 1160 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
1161 }; | 1161 }; |
1162 | 1162 |
1163 } } // namespace v8::internal | 1163 } } // namespace v8::internal |
1164 | 1164 |
1165 #endif // V8_PROFILE_GENERATOR_H_ | 1165 #endif // V8_PROFILE_GENERATOR_H_ |
OLD | NEW |