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

Unified Diff: vm/isolate.cc

Issue 10809095: Dump number of symbols in the isolate symbol table before shutting down an isolate under the --trac… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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 | « no previous file | vm/symbols.h » ('j') | vm/symbols.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/isolate.cc
===================================================================
--- vm/isolate.cc (revision 9873)
+++ vm/isolate.cc (working copy)
@@ -20,6 +20,7 @@
#include "vm/random.h"
#include "vm/stack_frame.h"
#include "vm/stub_code.h"
+#include "vm/symbols.h"
#include "vm/thread.h"
#include "vm/timer.h"
#include "vm/visitor.h"
@@ -391,6 +392,9 @@
DebugInfo::UnregisterAllSections();
}
if (FLAG_trace_isolates) {
+ Zone zone(this);
+ HandleScope handle_scope(this);
+ OS::Print("Number of symbols added = %d\n", Symbols::UsedCount(this));
OS::Print("[-] Stopping isolate:\n"
"\tisolate: %s\n", name());
}
« no previous file with comments | « no previous file | vm/symbols.h » ('j') | vm/symbols.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698