Hector Dearman | 4763d92 | 2018-05-23 10:12:03 +0100 | [diff] [blame] | 1 | # Perfetto UI |
| 2 | |
| 3 | Quick Start |
| 4 | ----------- |
| 5 | Run: |
| 6 | |
Primiano Tucci | 9ead3fb | 2018-10-21 04:30:43 +0100 | [diff] [blame] | 7 | ```bash |
Hector Dearman | 4763d92 | 2018-05-23 10:12:03 +0100 | [diff] [blame] | 8 | $ git clone https://android.googlesource.com/platform/external/perfetto/ |
| 9 | $ cd perfetto |
| 10 | $ tools/install-build-deps --no-android --ui |
| 11 | $ tools/gn gen out/debug --args='is_debug=true is_clang=true' |
| 12 | $ tools/ninja -C out/debug ui |
| 13 | ``` |
| 14 | |
| 15 | For more details on `gn` configs see |
| 16 | [Build Instructions](../docs/build-instructions.md). |
| 17 | |
Hector Dearman | bf38492 | 2018-06-25 10:42:01 +0100 | [diff] [blame] | 18 | To run the tests: |
Primiano Tucci | 9ead3fb | 2018-10-21 04:30:43 +0100 | [diff] [blame] | 19 | ```bash |
Hector Dearman | bf38492 | 2018-06-25 10:42:01 +0100 | [diff] [blame] | 20 | $ out/debug/ui_unittests |
| 21 | $ out/debug/ui_tests |
| 22 | ``` |
| 23 | |
| 24 | To run the tests in watch mode: |
Primiano Tucci | 9ead3fb | 2018-10-21 04:30:43 +0100 | [diff] [blame] | 25 | ```bash |
Hector Dearman | bf38492 | 2018-06-25 10:42:01 +0100 | [diff] [blame] | 26 | $ out/debug/ui_unittests --watch |
| 27 | ``` |
| 28 | |
Hector Dearman | 4763d92 | 2018-05-23 10:12:03 +0100 | [diff] [blame] | 29 | Finally run: |
| 30 | |
Primiano Tucci | 9ead3fb | 2018-10-21 04:30:43 +0100 | [diff] [blame] | 31 | ```bash |
Hector Dearman | 262cbe2 | 2018-05-31 13:28:21 +0100 | [diff] [blame] | 32 | $ ./ui/run-dev-server out/debug |
Hector Dearman | 4763d92 | 2018-05-23 10:12:03 +0100 | [diff] [blame] | 33 | ``` |
| 34 | |
| 35 | and navigate to `localhost:3000`. |