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

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

Issue 197663006: Heap maps: add VM service message. (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 | « no previous file | runtime/vm/pages.h » ('j') | runtime/vm/pages.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_HEAP_H_ 5 #ifndef VM_HEAP_H_
6 #define VM_HEAP_H_ 6 #define VM_HEAP_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 232 }
233 233
234 bool gc_in_progress() const { return gc_in_progress_; } 234 bool gc_in_progress() const { return gc_in_progress_; }
235 235
236 static bool IsAllocatableInNewSpace(intptr_t size) { 236 static bool IsAllocatableInNewSpace(intptr_t size) {
237 return size <= kNewAllocatableSize; 237 return size <= kNewAllocatableSize;
238 } 238 }
239 239
240 void PrintToJSONObject(Space space, JSONObject* object) const; 240 void PrintToJSONObject(Space space, JSONObject* object) const;
241 241
242 // The heap map is an array of sizes and class ids (except freelist is 0).
243 void PrintHeapMapToJSONStream(JSONStream* stream) const {
244 return old_space_->PrintHeapMapToJSONStream(stream);
245 }
246
242 private: 247 private:
243 class GCStats : public ValueObject { 248 class GCStats : public ValueObject {
244 public: 249 public:
245 GCStats() {} 250 GCStats() {}
246 intptr_t num_; 251 intptr_t num_;
247 Heap::Space space_; 252 Heap::Space space_;
248 Heap::GCReason reason_; 253 Heap::GCReason reason_;
249 254
250 class Data : public ValueObject { 255 class Data : public ValueObject {
251 public: 256 public:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 NoHeapGrowthControlScope(); 336 NoHeapGrowthControlScope();
332 ~NoHeapGrowthControlScope(); 337 ~NoHeapGrowthControlScope();
333 private: 338 private:
334 bool current_growth_controller_state_; 339 bool current_growth_controller_state_;
335 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope); 340 DISALLOW_COPY_AND_ASSIGN(NoHeapGrowthControlScope);
336 }; 341 };
337 342
338 } // namespace dart 343 } // namespace dart
339 344
340 #endif // VM_HEAP_H_ 345 #endif // VM_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/pages.h » ('j') | runtime/vm/pages.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698