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

Side by Side Diff: vm/isolate.cc

Issue 11416356: Add dump_symbol_stats to dump symbol table stats at the end of a test run (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years 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 | « vm/dart.cc ('k') | vm/symbols.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/isolate.h" 5 #include "vm/isolate.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "lib/mirrors.h" 9 #include "lib/mirrors.h"
10 #include "vm/compiler_stats.h" 10 #include "vm/compiler_stats.h"
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 if (FLAG_report_usage_count) { 445 if (FLAG_report_usage_count) {
446 PrintInvokedFunctions(); 446 PrintInvokedFunctions();
447 } 447 }
448 CompilerStats::Print(); 448 CompilerStats::Print();
449 if (FLAG_generate_gdb_symbols) { 449 if (FLAG_generate_gdb_symbols) {
450 DebugInfo::UnregisterAllSections(); 450 DebugInfo::UnregisterAllSections();
451 } 451 }
452 if (FLAG_trace_isolates) { 452 if (FLAG_trace_isolates) {
453 StackZone zone(this); 453 StackZone zone(this);
454 HandleScope handle_scope(this); 454 HandleScope handle_scope(this);
455 OS::Print("Number of symbols added = %"Pd"\n", Symbols::Size(this)); 455 heap()->PrintSizes();
456 megamorphic_cache_table()->PrintSizes();
457 Symbols::DumpStats();
456 OS::Print("[-] Stopping isolate:\n" 458 OS::Print("[-] Stopping isolate:\n"
457 "\tisolate: %s\n", name()); 459 "\tisolate: %s\n", name());
458 } 460 }
459 // TODO(5411455): For now just make sure there are no current isolates 461 // TODO(5411455): For now just make sure there are no current isolates
460 // as we are shutting down the isolate. 462 // as we are shutting down the isolate.
461 SetCurrent(NULL); 463 SetCurrent(NULL);
462 } 464 }
463 465
464 466
465 Dart_IsolateCreateCallback Isolate::create_callback_ = NULL; 467 Dart_IsolateCreateCallback Isolate::create_callback_ = NULL;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 519
518 520
519 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, 521 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor,
520 bool visit_prologue_weak_handles) { 522 bool visit_prologue_weak_handles) {
521 if (api_state() != NULL) { 523 if (api_state() != NULL) {
522 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); 524 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles);
523 } 525 }
524 } 526 }
525 527
526 } // namespace dart 528 } // namespace dart
OLDNEW
« no previous file with comments | « vm/dart.cc ('k') | vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698