| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |