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

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

Issue 12221022: Initial prototype of vmstats support, based on Dart VM Stats draft design doc. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
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 "include/dart_debugger_api.h" 5 #include "include/dart_debugger_api.h"
6 6
7 #include "vm/dart_api_impl.h" 7 #include "vm/dart_api_impl.h"
8 #include "vm/dart_api_state.h" 8 #include "vm/dart_api_state.h"
9 #include "vm/debugger.h" 9 #include "vm/debugger.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 lib.set_debuggable(is_debuggable); 744 lib.set_debuggable(is_debuggable);
745 return Api::True(isolate); 745 return Api::True(isolate);
746 } 746 }
747 747
748 748
749 DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id) { 749 DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id) {
750 Isolate* isolate = PortMap::GetIsolate(isolate_id); 750 Isolate* isolate = PortMap::GetIsolate(isolate_id);
751 return Api::CastIsolate(isolate); 751 return Api::CastIsolate(isolate);
752 } 752 }
753 753
754
755 DART_EXPORT char* Dart_GetVmStatus(const char* request) {
756 return VmStatusService::Dart_GetVmStatus(request);
757 }
758
759
760 DART_EXPORT Dart_Handle Dart_RegisterVmStatusPlugin(
761 const char* status_type, Dart_VmStatusCallback callback) {
762 return VmStatusService::RegisterPlugin(status_type, callback);
763 }
764
754 } // namespace dart 765 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698