OLD | NEW |
---|---|
1 # Dart VM Service Protocol 2.0 | 1 # Dart VM Service Protocol 2.0 |
2 | 2 |
3 > Please post feedback to the [observatory-discuss group][discuss-list] | 3 > Please post feedback to the [observatory-discuss group][discuss-list] |
4 | 4 |
5 This document describes of _version 2.0_ of the Dart VM Service Protocol. This | 5 This document describes of _version 2.0_ of the Dart VM Service Protocol. This |
6 protocol is used to communicate with a running Dart Virtual Machine. | 6 protocol is used to communicate with a running Dart Virtual Machine. |
7 | 7 |
8 To use the Service Protocol, start the VM with the *--observe* flag. | 8 To use the Service Protocol, start the VM with the *--observe* flag. |
9 The VM will start a webserver which services protocol requests via WebSocket. | 9 The VM will start a webserver which services protocol requests via WebSocket. |
10 It is possible to make HTTP (non-WebSocket) requests, | 10 It is possible to make HTTP (non-WebSocket) requests, |
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
952 ### Event | 952 ### Event |
953 | 953 |
954 ``` | 954 ``` |
955 class Event extends Response { | 955 class Event extends Response { |
956 // What kind of event is this? | 956 // What kind of event is this? |
957 EventKind kind; | 957 EventKind kind; |
958 | 958 |
959 // The isolate with which this event is associated. | 959 // The isolate with which this event is associated. |
960 @Isolate isolate; | 960 @Isolate isolate; |
961 | 961 |
962 // The timestamp (in milliseconds since the epoch) associated with this event. | |
963 // For some isolate pause events, the timestamp is from when the isolate was | |
964 // paused. For other events, the timestamp is from when the event was created. | |
nweiz
2015/09/10 22:45:13
Which events are which?
| |
965 int timestamp; | |
966 | |
962 // The breakpoint which was added, removed, or resolved. | 967 // The breakpoint which was added, removed, or resolved. |
963 // | 968 // |
964 // This is provided for the event kinds: | 969 // This is provided for the event kinds: |
965 // PauseBreakpoint | 970 // PauseBreakpoint |
966 // BreakpointAdded | 971 // BreakpointAdded |
967 // BreakpointRemoved | 972 // BreakpointRemoved |
968 // BreakpointResolved | 973 // BreakpointResolved |
969 Breakpoint breakpoint [optional]; | 974 Breakpoint breakpoint [optional]; |
970 | 975 |
971 // The list of breakpoints at which we are currently paused | 976 // The list of breakpoints at which we are currently paused |
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1999 ``` | 2004 ``` |
2000 | 2005 |
2001 ## Revision History | 2006 ## Revision History |
2002 | 2007 |
2003 version | comments | 2008 version | comments |
2004 ------- | -------- | 2009 ------- | -------- |
2005 1.0 draft 1 | initial revision | 2010 1.0 draft 1 | initial revision |
2006 | 2011 |
2007 | 2012 |
2008 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato ry-discuss | 2013 [discuss-list]: https://groups.google.com/a/dartlang.org/forum/#!forum/observato ry-discuss |
OLD | NEW |