Update SDK README to discuss about:tracing and observatory.

TBR=ianh@google.com

Review URL: https://codereview.chromium.org/1114553004
This commit is contained in:
Eric Seidel 2015-04-28 12:05:46 -07:00
parent c76bf3bdaf
commit 817e2a08df
3 changed files with 30 additions and 1 deletions

View File

@ -133,12 +133,32 @@ Running a Sky application
The `sky` pub package includes a `sky_tool` script to assist in running
Sky applications inside the `SkyDemo.apk` harness.
1. ``packages/sky/lib/sky_tool start --install examples/stocks/main.sky``
1. ``packages/sky/sky_tool start --install examples/stocks/main.sky``
The --install flag is only necessary to install SkyDemo.apk if not already
installed from the Google Play store.
2. Use ``adb logcat`` to view any errors or Dart print() output from the app.
Measuring Performance
---------------------
Sky has support for generating trace files compatible with
[Chrome's about:tracing](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool).
`packages/sky/sky_tool start_tracing` and `packages/sky/sky_tool stop_tracing`
are the commands to use.
Due to https://github.com/domokit/mojo/issues/127 tracing currently
requires root access on the device.
Debugging
---------
Dart's [Observatory](https://www.dartlang.org/tools/observatory/)
(VM Debugger & Profiler) support in Sky is
[in progress](https://codereview.chromium.org/1107803002) and should
be released shortly after Dart Summit 2015.
Building a standalone MyApp
---------------------------

View File

@ -1,3 +1,11 @@
## 0.0.5+dart-summit-7
- Fix crash in sky_tool stop_tracing.
## 0.0.5+dart-summit-6
- Fix missing include in sky_tool causing failure.
## 0.0.5+dart-summit-5
- Added sky_tool start_tracing and stop_tracing.

View File

@ -13,6 +13,7 @@ import socket
import subprocess
import sys
import urlparse
import time
# TODO(eseidel): This should be BIN_DIR.
LIB_DIR = os.path.realpath(os.path.dirname(os.path.abspath(__file__)))