Index: runtime/vm/service_event.h |
diff --git a/runtime/vm/service_event.h b/runtime/vm/service_event.h |
index ed4153bdd44dcb7e6a85af4a93dcb1ac9d88e927..45ebb718babd111a2ca5fc1074c4a5a8786c2614 100644 |
--- a/runtime/vm/service_event.h |
+++ b/runtime/vm/service_event.h |
@@ -70,6 +70,19 @@ class ServiceEvent { |
EventKind kind() const { return kind_; } |
+ bool IsPause() const { |
+ switch (kind()) { |
+ case kPauseStart: |
+ case kPauseExit: |
+ case kPauseBreakpoint: |
+ case kPauseInterrupted: |
+ case kPauseException: |
+ return true; |
+ default: |
+ return false; |
+ } |
+ } |
+ |
const char* embedder_kind() const { return embedder_kind_; } |
const char* KindAsCString() const; |