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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 EntryInfo(SnapshotObjectId id, Address addr, unsigned int size, bool accessed) | 734 EntryInfo(SnapshotObjectId id, Address addr, unsigned int size, bool accessed) |
735 : id(id), addr(addr), size(size), accessed(accessed) { } | 735 : id(id), addr(addr), size(size), accessed(accessed) { } |
736 SnapshotObjectId id; | 736 SnapshotObjectId id; |
737 Address addr; | 737 Address addr; |
738 unsigned int size; | 738 unsigned int size; |
739 bool accessed; | 739 bool accessed; |
740 }; | 740 }; |
741 struct TimeInterval { | 741 struct TimeInterval { |
742 explicit TimeInterval(SnapshotObjectId id) : id(id), size(0), count(0) { } | 742 explicit TimeInterval(SnapshotObjectId id) : id(id), size(0), count(0) { } |
743 SnapshotObjectId id; | 743 SnapshotObjectId id; |
744 unsigned int size; | 744 uint32_t size; |
745 uint32_t count; | 745 uint32_t count; |
746 }; | 746 }; |
747 | 747 |
748 void UpdateHeapObjectsMap(); | 748 void UpdateHeapObjectsMap(); |
749 void RemoveDeadEntries(); | 749 void RemoveDeadEntries(); |
750 | 750 |
751 static bool AddressesMatch(void* key1, void* key2) { | 751 static bool AddressesMatch(void* key1, void* key2) { |
752 return key1 == key2; | 752 return key1 == key2; |
753 } | 753 } |
754 | 754 |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 | 1192 |
1193 friend class HeapSnapshotJSONSerializerEnumerator; | 1193 friend class HeapSnapshotJSONSerializerEnumerator; |
1194 friend class HeapSnapshotJSONSerializerIterator; | 1194 friend class HeapSnapshotJSONSerializerIterator; |
1195 | 1195 |
1196 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 1196 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
1197 }; | 1197 }; |
1198 | 1198 |
1199 } } // namespace v8::internal | 1199 } } // namespace v8::internal |
1200 | 1200 |
1201 #endif // V8_PROFILE_GENERATOR_H_ | 1201 #endif // V8_PROFILE_GENERATOR_H_ |
OLD | NEW |