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

Unified Diff: runtime/observatory/lib/src/models/objects/event.dart

Issue 2304463002: Converted Observatory vm-view && isolate-view elements (Closed)
Patch Set: Removed trailing whitespaces Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/models/objects/event.dart
diff --git a/runtime/observatory/lib/src/models/objects/event.dart b/runtime/observatory/lib/src/models/objects/event.dart
index 33dfc63e165330102bc3471a1aa58ab153748af1..5b6d9aa83ecda174b91cc680a35aeb52d1c4320a 100644
--- a/runtime/observatory/lib/src/models/objects/event.dart
+++ b/runtime/observatory/lib/src/models/objects/event.dart
@@ -143,3 +143,29 @@ abstract class ConnectionClosedEvent extends Event {
/// The reason of the closed connection
String get reason;
}
+
+Frame topFrame(DebugEvent event) {
+ if (event is PauseBreakpointEvent) {
+ return event.topFrame;
+ }
+ if (event is PauseInterruptedEvent) {
+ return event.topFrame;
+ }
+ if (event is PauseExceptionEvent) {
+ return event.topFrame;
+ }
+ if (event is ResumeEvent) {
+ return event.topFrame;
+ }
+ return null;
+}
+
+bool isAtAsyncSuspection(DebugEvent event) {
rmacnak 2016/09/01 17:41:28 isAtAsyncSuspension
cbernaschina 2016/09/01 17:43:59 Done.
+ if (event is PauseBreakpointEvent) {
+ return event.atAsyncSuspension;
+ }
+ if (event is PauseInterruptedEvent) {
+ return event.atAsyncSuspension;
+ }
+ return false;
+}
« no previous file with comments | « runtime/observatory/lib/src/elements/vm_view.html ('k') | runtime/observatory/lib/src/models/objects/frame.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698