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

Side by Side Diff: vm/heap.cc

Issue 10414069: - Add more information to --verbose-gc. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 | vm/pages.h » ('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) 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 #include "vm/heap.h" 5 #include "vm/heap.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "platform/utils.h" 8 #include "platform/utils.h"
9 #include "vm/compiler_stats.h" 9 #include "vm/compiler_stats.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 VerifyPointersVisitor visitor(Isolate::Current()); 196 VerifyPointersVisitor visitor(Isolate::Current());
197 new_space_->VisitObjectPointers(&visitor); 197 new_space_->VisitObjectPointers(&visitor);
198 old_space_->VisitObjectPointers(&visitor); 198 old_space_->VisitObjectPointers(&visitor);
199 code_space_->VisitObjectPointers(&visitor); 199 code_space_->VisitObjectPointers(&visitor);
200 // Only returning a value so that Heap::Validate can be called from an ASSERT. 200 // Only returning a value so that Heap::Validate can be called from an ASSERT.
201 return true; 201 return true;
202 } 202 }
203 203
204 204
205 void Heap::PrintSizes() const { 205 void Heap::PrintSizes() const {
206 OS::PrintErr("New space (%dk) Old space (%dk) Code space (%dk)\n", 206 OS::PrintErr("New space (%dk of %dk) "
207 (new_space_->in_use() / KB), 207 "Old space (%dk of %dk) "
208 (old_space_->in_use() / KB), 208 "Code space (%dk of %dk)\n",
209 (code_space_->in_use() / KB)); 209 (new_space_->in_use() / KB), (new_space_->capacity() / KB),
210 (old_space_->in_use() / KB), (old_space_->capacity() / KB),
211 (code_space_->in_use() / KB), (code_space_->capacity() / KB));
210 } 212 }
211 213
212 214
213 #if defined(DEBUG) 215 #if defined(DEBUG)
214 NoGCScope::NoGCScope() : StackResource(Isolate::Current()) { 216 NoGCScope::NoGCScope() : StackResource(Isolate::Current()) {
215 isolate()->IncrementNoGCScopeDepth(); 217 isolate()->IncrementNoGCScopeDepth();
216 } 218 }
217 219
218 220
219 NoGCScope::~NoGCScope() { 221 NoGCScope::~NoGCScope() {
220 isolate()->DecrementNoGCScopeDepth(); 222 isolate()->DecrementNoGCScopeDepth();
221 } 223 }
222 #endif // defined(DEBUG) 224 #endif // defined(DEBUG)
223 225
224 } // namespace dart 226 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | vm/pages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698