OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 #ifndef VM_SERVICE_EVENT_H_ | 5 #ifndef VM_SERVICE_EVENT_H_ |
6 #define VM_SERVICE_EVENT_H_ | 6 #define VM_SERVICE_EVENT_H_ |
7 | 7 |
8 #include "vm/debugger.h" | 8 #include "vm/debugger.h" |
9 | 9 |
10 class DebuggerEvent; | 10 class DebuggerEvent; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 }; | 63 }; |
64 | 64 |
65 ServiceEvent(Isolate* isolate, EventKind event_kind); | 65 ServiceEvent(Isolate* isolate, EventKind event_kind); |
66 | 66 |
67 explicit ServiceEvent(const DebuggerEvent* debugger_event); | 67 explicit ServiceEvent(const DebuggerEvent* debugger_event); |
68 | 68 |
69 Isolate* isolate() const { return isolate_; } | 69 Isolate* isolate() const { return isolate_; } |
70 | 70 |
71 EventKind kind() const { return kind_; } | 71 EventKind kind() const { return kind_; } |
72 | 72 |
| 73 bool IsPause() const { |
| 74 switch (kind()) { |
| 75 case kPauseStart: |
| 76 case kPauseExit: |
| 77 case kPauseBreakpoint: |
| 78 case kPauseInterrupted: |
| 79 case kPauseException: |
| 80 return true; |
| 81 default: |
| 82 return false; |
| 83 } |
| 84 } |
| 85 |
73 const char* embedder_kind() const { return embedder_kind_; } | 86 const char* embedder_kind() const { return embedder_kind_; } |
74 | 87 |
75 const char* KindAsCString() const; | 88 const char* KindAsCString() const; |
76 | 89 |
77 void set_embedder_kind(const char* embedder_kind) { | 90 void set_embedder_kind(const char* embedder_kind) { |
78 embedder_kind_ = embedder_kind; | 91 embedder_kind_ = embedder_kind; |
79 } | 92 } |
80 | 93 |
81 const char* stream_id() const; | 94 const char* stream_id() const; |
82 | 95 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 const uint8_t* bytes_; | 210 const uint8_t* bytes_; |
198 intptr_t bytes_length_; | 211 intptr_t bytes_length_; |
199 LogRecord log_record_; | 212 LogRecord log_record_; |
200 ExtensionEvent extension_event_; | 213 ExtensionEvent extension_event_; |
201 int64_t timestamp_; | 214 int64_t timestamp_; |
202 }; | 215 }; |
203 | 216 |
204 } // namespace dart | 217 } // namespace dart |
205 | 218 |
206 #endif // VM_SERVICE_EVENT_H_ | 219 #endif // VM_SERVICE_EVENT_H_ |
OLD | NEW |