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

Side by Side 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, 4 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/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"
11 #include "vm/dart_api_state.h" 11 #include "vm/dart_api_state.h"
12 #include "vm/dart_entry.h" 12 #include "vm/dart_entry.h"
13 #include "vm/debugger.h" 13 #include "vm/debugger.h"
14 #include "vm/debuginfo.h" 14 #include "vm/debuginfo.h"
15 #include "vm/heap.h" 15 #include "vm/heap.h"
16 #include "vm/message_handler.h" 16 #include "vm/message_handler.h"
17 #include "vm/object_store.h" 17 #include "vm/object_store.h"
18 #include "vm/parser.h" 18 #include "vm/parser.h"
19 #include "vm/port.h" 19 #include "vm/port.h"
20 #include "vm/random.h" 20 #include "vm/random.h"
21 #include "vm/stack_frame.h" 21 #include "vm/stack_frame.h"
22 #include "vm/stub_code.h" 22 #include "vm/stub_code.h"
23 #include "vm/symbols.h"
23 #include "vm/thread.h" 24 #include "vm/thread.h"
24 #include "vm/timer.h" 25 #include "vm/timer.h"
25 #include "vm/visitor.h" 26 #include "vm/visitor.h"
26 27
27 namespace dart { 28 namespace dart {
28 29
29 DEFINE_FLAG(bool, report_usage_count, false, 30 DEFINE_FLAG(bool, report_usage_count, false,
30 "Track function usage and report."); 31 "Track function usage and report.");
31 DEFINE_FLAG(bool, trace_isolates, false, 32 DEFINE_FLAG(bool, trace_isolates, false,
32 "Trace isolate creation and shut down."); 33 "Trace isolate creation and shut down.");
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 // Dump all accumalated timer data for the isolate. 385 // Dump all accumalated timer data for the isolate.
385 timer_list_.ReportTimers(); 386 timer_list_.ReportTimers();
386 if (FLAG_report_usage_count) { 387 if (FLAG_report_usage_count) {
387 PrintInvokedFunctions(); 388 PrintInvokedFunctions();
388 } 389 }
389 CompilerStats::Print(); 390 CompilerStats::Print();
390 if (FLAG_generate_gdb_symbols) { 391 if (FLAG_generate_gdb_symbols) {
391 DebugInfo::UnregisterAllSections(); 392 DebugInfo::UnregisterAllSections();
392 } 393 }
393 if (FLAG_trace_isolates) { 394 if (FLAG_trace_isolates) {
395 Zone zone(this);
396 HandleScope handle_scope(this);
397 OS::Print("Number of symbols added = %d\n", Symbols::Size(this));
394 OS::Print("[-] Stopping isolate:\n" 398 OS::Print("[-] Stopping isolate:\n"
395 "\tisolate: %s\n", name()); 399 "\tisolate: %s\n", name());
396 } 400 }
397 // TODO(5411455): For now just make sure there are no current isolates 401 // TODO(5411455): For now just make sure there are no current isolates
398 // as we are shutting down the isolate. 402 // as we are shutting down the isolate.
399 SetCurrent(NULL); 403 SetCurrent(NULL);
400 } 404 }
401 405
402 406
403 Dart_IsolateCreateCallback Isolate::create_callback_ = NULL; 407 Dart_IsolateCreateCallback Isolate::create_callback_ = NULL;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 451
448 452
449 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor, 453 void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor,
450 bool visit_prologue_weak_handles) { 454 bool visit_prologue_weak_handles) {
451 if (api_state() != NULL) { 455 if (api_state() != NULL) {
452 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles); 456 api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles);
453 } 457 }
454 } 458 }
455 459
456 } // namespace dart 460 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698