• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Perfetto UI
2
3## Quick Start
4
5```bash
6$ git clone https://android.googlesource.com/platform/external/perfetto/
7$ cd perfetto
8
9# Will build into ./out/ui by default. Can be changed with --out path/
10# The final bundle will be available at ./ui/out/dist/.
11# The build script creates a symlink from ./ui/out to $OUT_PATH/ui/.
12ui/build
13
14# This will automatically build the UI. There is no need to manually run
15# ui/build before running ui/run-dev-server.
16ui/run-dev-server
17```
18
19Then navigate to `http://localhost:10000`.
20
21See also https://perfetto.dev/docs/contributing/build-instructions#ui-development
22
23## Unit tests
24
25```bash
26ui/run-unittests  # Add --watch to run them in watch mode.
27```
28
29## Integration tests (browser screenshot difftests)
30
31```bash
32run-integrationtests
33```
34
35To rebaseline screenshots after a UI change
36
37```bash
38ui/run-integrationtests --rebaseline
39
40tools/test_data upload
41
42git add -A
43
44git commit
45```
46
47See also https://perfetto.dev/docs/contributing/testing#ui-pixel-diff-tests
48