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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/isolate_summary.dart

Issue 340443006: Add support for asynchronous event notification to the observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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) 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 library isolate_summary_element; 5 library isolate_summary_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'observatory_element.dart'; 8 import 'observatory_element.dart';
9 import 'package:observatory/app.dart'; 9 import 'package:observatory/app.dart';
10 import 'package:observatory/service.dart'; 10 import 'package:observatory/service.dart';
(...skipping 19 matching lines...) Expand all
30 assert(result.serviceType == 'Success'); 30 assert(result.serviceType == 'Success');
31 return isolate.reload(); 31 return isolate.reload();
32 }); 32 });
33 } 33 }
34 34
35 Future resume(_) { 35 Future resume(_) {
36 return isolate.get("debug/resume").then((result) { 36 return isolate.get("debug/resume").then((result) {
37 // TODO(turnidge): Instead of asserting here, handle errors 37 // TODO(turnidge): Instead of asserting here, handle errors
38 // properly. 38 // properly.
39 assert(result.serviceType == 'Success'); 39 assert(result.serviceType == 'Success');
40 app.removePauseEvents(isolate);
40 return isolate.reload(); 41 return isolate.reload();
41 }); 42 });
42 } 43 }
43 } 44 }
44 45
45 @CustomTag('isolate-location') 46 @CustomTag('isolate-location')
46 class IsolateLocationElement extends ObservatoryElement { 47 class IsolateLocationElement extends ObservatoryElement {
47 IsolateLocationElement.created() : super.created(); 48 IsolateLocationElement.created() : super.created();
48 49
49 @published Isolate isolate; 50 @published Isolate isolate;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 chart.update(counters); 104 chart.update(counters);
104 var element = shadowRoot.querySelector('#counterPieChart'); 105 var element = shadowRoot.querySelector('#counterPieChart');
105 if (element != null) { 106 if (element != null) {
106 chart.draw(element); 107 chart.draw(element);
107 } 108 }
108 } 109 }
109 } 110 }
110 111
111 112
112 113
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698