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

Side by Side Diff: runtime/vm/service/service.md

Issue 1154163004: Libraries have uris not urls. Scripts have uris not names. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/report_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Dart VM Service Protocol 0.0 1 # Dart VM Service Protocol 0.0
2 2
3 This document describes _version 0.0_ of the Dart VM Service Protocol. 3 This document describes _version 0.0_ of the Dart VM Service Protocol.
4 This protocol is used to communicate with a running Dart Virtual 4 This protocol is used to communicate with a running Dart Virtual
5 Machine. 5 Machine.
6 6
7 To use the Service Protocol, start the VM with the *--observe* flag. 7 To use the Service Protocol, start the VM with the *--observe* flag.
8 The VM will start a webserver which services protocol requests via WebSocket. 8 The VM will start a webserver which services protocol requests via WebSocket.
9 It is possible to make HTTP (non-WebSocket) requests, 9 It is possible to make HTTP (non-WebSocket) requests,
10 but this does not allow access to VM _events_ and is not documented 10 but this does not allow access to VM _events_ and is not documented
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 1343
1344 An _Isolate_ object provides information about one isolate in the VM. 1344 An _Isolate_ object provides information about one isolate in the VM.
1345 1345
1346 ### Library 1346 ### Library
1347 1347
1348 ``` 1348 ```
1349 class @Library extends @Object { 1349 class @Library extends @Object {
1350 // The name of this library. 1350 // The name of this library.
1351 string name; 1351 string name;
1352 1352
1353 // The url of this library. 1353 // The uri of this library.
1354 string url; 1354 string uri;
1355 } 1355 }
1356 ``` 1356 ```
1357 1357
1358 _@Library_ is a reference to a _Library_. 1358 _@Library_ is a reference to a _Library_.
1359 1359
1360 ``` 1360 ```
1361 class Library extends Object { 1361 class Library extends Object {
1362 // The name of this library. 1362 // The name of this library.
1363 string name; 1363 string name;
1364 1364
1365 // The url of this library. 1365 // The uri of this library.
1366 string url; 1366 string uri;
1367 1367
1368 // A list of the imports for this library. 1368 // A list of the imports for this library.
1369 @Library[] imports; 1369 @Library[] imports;
1370 1370
1371 // A list of the scripts which constitute this library. 1371 // A list of the scripts which constitute this library.
1372 @Script[] scripts; 1372 @Script[] scripts;
1373 1373
1374 // A list of the top-level variables in this library. 1374 // A list of the top-level variables in this library.
1375 @Field[] variables; 1375 @Field[] variables;
1376 1376
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 OptimizedOut 1521 OptimizedOut
1522 } 1522 }
1523 ``` 1523 ```
1524 1524
1525 A _SentinelType_ is used to distinguish different kinds of _Sentinel_ objects. 1525 A _SentinelType_ is used to distinguish different kinds of _Sentinel_ objects.
1526 1526
1527 ### Script 1527 ### Script
1528 1528
1529 ``` 1529 ```
1530 class @Script extends @Object { 1530 class @Script extends @Object {
1531 // A name for this script. 1531 // The uri from which this script was loaded.
1532 string name; 1532 string uri;
1533 1533
1534 // What kind of script is this? 1534 // What kind of script is this?
1535 string kind; 1535 string kind;
1536 } 1536 }
1537 ``` 1537 ```
1538 1538
1539 _@Script_ is a reference to a _Script_. 1539 _@Script_ is a reference to a _Script_.
1540 1540
1541 ``` 1541 ```
1542 class Script extends Object { 1542 class Script extends Object {
1543 // A name for this script. 1543 // The uri from which this script was loaded.
1544 string name; 1544 string uri;
1545 1545
1546 // What kind of script is this? 1546 // What kind of script is this?
1547 ScriptKind kind; 1547 ScriptKind kind;
1548 1548
1549 // The library which owns this script. 1549 // The library which owns this script.
1550 @Library library; 1550 @Library library;
1551 1551
1552 // The source code for this script. For certain built-in scripts, 1552 // The source code for this script. For certain built-in scripts,
1553 // this may be reconstructed without source comments. 1553 // this may be reconstructed without source comments.
1554 string source; 1554 string source;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 // A list of isolates running in the VM. 1770 // A list of isolates running in the VM.
1771 @Isolate[] isolates 1771 @Isolate[] isolates
1772 } 1772 }
1773 ``` 1773 ```
1774 1774
1775 ## Revision History 1775 ## Revision History
1776 1776
1777 version | comments 1777 version | comments
1778 ------- | -------- 1778 ------- | --------
1779 0.0 | draft 1779 0.0 | draft
OLDNEW
« no previous file with comments | « runtime/vm/report_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698