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

Side by Side Diff: runtime/vm/pages.h

Issue 204103009: Add class and address information to heap map; display on hover. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | « runtime/vm/heap.h ('k') | runtime/vm/pages.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 (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_PAGES_H_ 5 #ifndef VM_PAGES_H_
6 #define VM_PAGES_H_ 6 #define VM_PAGES_H_
7 7
8 #include "vm/freelist.h" 8 #include "vm/freelist.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/virtual_memory.h" 10 #include "vm/virtual_memory.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 void IncrementCollections() { 234 void IncrementCollections() {
235 collections_++; 235 collections_++;
236 } 236 }
237 237
238 intptr_t collections() const { 238 intptr_t collections() const {
239 return collections_; 239 return collections_;
240 } 240 }
241 241
242 void PrintToJSONObject(JSONObject* object); 242 void PrintToJSONObject(JSONObject* object);
243 void PrintHeapMapToJSONStream(JSONStream* stream); 243 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream);
244 244
245 void AllocateExternal(intptr_t size); 245 void AllocateExternal(intptr_t size);
246 void FreeExternal(intptr_t size); 246 void FreeExternal(intptr_t size);
247 247
248 private: 248 private:
249 // Ids for time and data records in Heap::GCStats. 249 // Ids for time and data records in Heap::GCStats.
250 enum { 250 enum {
251 // Time 251 // Time
252 kMarkObjects = 0, 252 kMarkObjects = 0,
253 kResetFreeLists = 1, 253 kResetFreeLists = 1,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 intptr_t collections_; 298 intptr_t collections_;
299 299
300 friend class PageSpaceController; 300 friend class PageSpaceController;
301 301
302 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace); 302 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace);
303 }; 303 };
304 304
305 } // namespace dart 305 } // namespace dart
306 306
307 #endif // VM_PAGES_H_ 307 #endif // VM_PAGES_H_
OLDNEW
« no previous file with comments | « runtime/vm/heap.h ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698