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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 1371193005: VM restart + shutdown fixes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: more code review Created 5 years, 2 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
Index: runtime/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index 2ca18b3787b5e6a7444f7e14bdc315177d4eff69..e65f5b76534045ecccc215c830d6b955232c7902 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -803,6 +803,10 @@ abstract class VM extends ServiceObjectOwner {
}
}
+ Future restart() {
+ return invokeRpc('_restartVM', {});
+ }
+
Future<ObservableMap> _fetchDirect() async {
if (!loaded) {
// The vm service relies on these events to keep the VM and
« no previous file with comments | « runtime/observatory/lib/src/elements/debugger.html ('k') | runtime/observatory/tests/service/vm_restart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698