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

Unified Diff: mojo/devtools/common/README.md

Issue 1329963002: Document the --trace-startup shell flag. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/devtools/common/README.md
diff --git a/mojo/devtools/common/README.md b/mojo/devtools/common/README.md
index e6044b238e962bbba77b11bb61f55a396413d47c..98cfaa47829b2337233d4cf6f6b831b68168810d 100644
--- a/mojo/devtools/common/README.md
+++ b/mojo/devtools/common/README.md
@@ -57,23 +57,33 @@ manager. You can pass a different window manager url using the
performance traces and attach a gdb debugger.
#### Tracing
-In order to collect [performance
+[Performance
traces](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool)
-interactively through `mojo_debug`, make sure that the app being inspected was
-run with `--debugger` switch. E.g.:
+can either be collected by Mojo Shell during its startup, or collected
+interactively by `mojo_debug`.
+
+To trace the Mojo Shell startup, use the `--trace-startup` flag:
+
+```sh
+mojo_run --trace-startup APP_URL [--android]
+```
+
+In order to collect traces interactively through `mojo_debug`, make sure that
+the app being inspected was run with `--debugger` switch. E.g.:
```sh
mojo_run --debugger APP_URL [--android]
```
-Then, in another shell, tracing can be orchestrated as follows:
+While Mojo Shell is running, tracing can be started and stopped by these two
+commands respectively:
```sh
mojo_debug tracing start
mojo_debug tracing stop [result.json]
```
-The trace file can be then loaded using the trace viewer in Chrome available at
+Trace files can be then loaded using the trace viewer in Chrome available at
`about://tracing`.
#### GDB
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698