| 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_);
|
|
|