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

Unified Diff: vm/handles_impl.h

Issue 11879005: Added code to trace zone and handles creation/deletion under flags (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/handles.cc ('k') | vm/handles_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/handles_impl.h
===================================================================
--- vm/handles_impl.h (revision 16932)
+++ vm/handles_impl.h (working copy)
@@ -11,7 +11,7 @@
namespace dart {
-DECLARE_DEBUG_FLAG(bool, trace_handles_count);
+DECLARE_DEBUG_FLAG(bool, trace_handles);
template <int kHandleSizeInWords, int kHandlesPerChunk, int kOffsetOfRawPtr>
void Handles<kHandleSizeInWords,
@@ -185,9 +185,10 @@
kHandlesPerChunk,
kOffsetOfRawPtr>::SetupNextScopeBlock() {
#if defined(DEBUG)
- if (FLAG_trace_handles_count) {
- OS::Print("Handle Counts: Zone = %d, Scoped = %d\n",
- CountZoneHandles(), CountScopedHandles());
+ if (FLAG_trace_handles) {
+ OS::PrintErr("*** Handle Counts for (0x%"Px"):Zone = %d,Scoped = %d\n",
+ reinterpret_cast<intptr_t>(this),
+ CountZoneHandles(), CountScopedHandles());
}
#endif
if (scoped_blocks_->next_block() == NULL) {
@@ -239,9 +240,10 @@
kHandlesPerChunk,
kOffsetOfRawPtr>::SetupNextZoneBlock() {
#if defined(DEBUG)
- if (FLAG_trace_handles_count) {
- OS::Print("Handle Counts: Zone = %d, Scoped = %d\n",
- CountZoneHandles(), CountScopedHandles());
+ if (FLAG_trace_handles) {
+ OS::PrintErr("*** Handle Counts for (0x%"Px"):Zone = %d,Scoped = %d\n",
+ reinterpret_cast<intptr_t>(this),
+ CountZoneHandles(), CountScopedHandles());
}
#endif
zone_blocks_ = new HandlesBlock(zone_blocks_);
« no previous file with comments | « vm/handles.cc ('k') | vm/handles_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698