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

Side by Side Diff: runtime/vm/isolate.cc

Issue 100103011: Changes to support dprof and Observatory profiler UIs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_patcher.cc ('k') | runtime/vm/native_symbol.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "platform/json.h" 9 #include "platform/json.h"
10 #include "lib/mirrors.h" 10 #include "lib/mirrors.h"
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 delete message_handler(); 716 delete message_handler();
717 set_message_handler(NULL); 717 set_message_handler(NULL);
718 718
719 // Dump all accumalated timer data for the isolate. 719 // Dump all accumalated timer data for the isolate.
720 timer_list_.ReportTimers(); 720 timer_list_.ReportTimers();
721 if (FLAG_report_usage_count) { 721 if (FLAG_report_usage_count) {
722 PrintInvokedFunctions(); 722 PrintInvokedFunctions();
723 } 723 }
724 724
725 // Write out profiler data if requested. 725 // Write out profiler data if requested.
726 Profiler::WriteTracing(this); 726 Profiler::WriteProfile(this);
727 727
728 // Write out the coverage data if collection has been enabled. 728 // Write out the coverage data if collection has been enabled.
729 CodeCoverage::Write(this); 729 CodeCoverage::Write(this);
730 730
731 // Finalize any weak persistent handles with a non-null referent. 731 // Finalize any weak persistent handles with a non-null referent.
732 FinalizeWeakPersistentHandlesVisitor visitor; 732 FinalizeWeakPersistentHandlesVisitor visitor;
733 api_state()->weak_persistent_handles().VisitHandles(&visitor); 733 api_state()->weak_persistent_handles().VisitHandles(&visitor);
734 734
735 CompilerStats::Print(); 735 CompilerStats::Print();
736 if (FLAG_trace_isolates) { 736 if (FLAG_trace_isolates) {
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 return func.raw(); 1120 return func.raw();
1121 } 1121 }
1122 1122
1123 1123
1124 void IsolateSpawnState::Cleanup() { 1124 void IsolateSpawnState::Cleanup() {
1125 SwitchIsolateScope switch_scope(isolate()); 1125 SwitchIsolateScope switch_scope(isolate());
1126 Dart::ShutdownIsolate(); 1126 Dart::ShutdownIsolate();
1127 } 1127 }
1128 1128
1129 } // namespace dart 1129 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_patcher.cc ('k') | runtime/vm/native_symbol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698