Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: src/profile-generator.h

Issue 10110001: Push heap stats as HeapStatsUpdate struct instead of raw array of uint32_t values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fields of HeapStatsUpdate struct were commented. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/v8-profiler.h ('k') | src/profile-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « include/v8-profiler.h ('k') | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698