| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'package:logging/logging.dart'; | 5 import 'package:logging/logging.dart'; |
| 6 import 'package:observatory/models.dart' as M; | 6 import 'package:observatory/models.dart' as M; |
| 7 import 'package:observatory/service.dart' as S; | 7 import 'package:observatory/service.dart' as S; |
| 8 | 8 |
| 9 class VMUpdateEvent implements M.VMUpdateEvent { | 9 class VMUpdateEvent implements M.VMUpdateEvent { |
| 10 final DateTime timestamp; | 10 final DateTime timestamp; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 final bool atAsyncSuspension; | 132 final bool atAsyncSuspension; |
| 133 PauseInterruptedEvent( | 133 PauseInterruptedEvent( |
| 134 this.timestamp, this.isolate, this.topFrame, this.atAsyncSuspension) { | 134 this.timestamp, this.isolate, this.topFrame, this.atAsyncSuspension) { |
| 135 assert(timestamp != null); | 135 assert(timestamp != null); |
| 136 assert(isolate != null); | 136 assert(isolate != null); |
| 137 assert(atAsyncSuspension != null); | 137 assert(atAsyncSuspension != null); |
| 138 } | 138 } |
| 139 } | 139 } |
| 140 | 140 |
| 141 | 141 |
| 142 class PausePostRequestEvent implements M.PauseInterruptedEvent { | 142 class PausePostRequestEvent implements M.PausePostRequestEvent { |
| 143 final DateTime timestamp; | 143 final DateTime timestamp; |
| 144 final M.IsolateRef isolate; | 144 final M.IsolateRef isolate; |
| 145 final M.Frame topFrame; | 145 final M.Frame topFrame; |
| 146 final bool atAsyncSuspension; | 146 final bool atAsyncSuspension; |
| 147 PausePostRequestEvent( | 147 PausePostRequestEvent( |
| 148 this.timestamp, this.isolate, this.topFrame, this.atAsyncSuspension) { | 148 this.timestamp, this.isolate, this.topFrame, this.atAsyncSuspension) { |
| 149 assert(timestamp != null); | 149 assert(timestamp != null); |
| 150 assert(isolate != null); | 150 assert(isolate != null); |
| 151 assert(atAsyncSuspension != null); | 151 assert(atAsyncSuspension != null); |
| 152 } | 152 } |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 case S.ServiceEvent.kGC: | 345 case S.ServiceEvent.kGC: |
| 346 return new GCEvent(event.timestamp, event.isolate); | 346 return new GCEvent(event.timestamp, event.isolate); |
| 347 case S.ServiceEvent.kNone: | 347 case S.ServiceEvent.kNone: |
| 348 return new NoneEvent(event.timestamp, event.isolate); | 348 return new NoneEvent(event.timestamp, event.isolate); |
| 349 default: | 349 default: |
| 350 // Ignore unrecognized events. | 350 // Ignore unrecognized events. |
| 351 Logger.root.severe('Unrecognized event: $event'); | 351 Logger.root.severe('Unrecognized event: $event'); |
| 352 return null; | 352 return null; |
| 353 } | 353 } |
| 354 } | 354 } |
| OLD | NEW |