• Home
Name Date Size #Lines LOC

..--

config/06-Sep-2024-316189

release/06-Sep-2024-269153

src/06-Sep-2024-100,06975,934

.eslintignoreD06-Sep-202486 98

.eslintrc.jsD06-Sep-20242.9 KiB9154

.gitignoreD06-Sep-202429 43

.prettierignoreD06-Sep-202486 98

.prettierrc.ymlD06-Sep-2024220 1312

BUILD.gnD06-Sep-20241.5 KiB5548

OWNERSD06-Sep-2024194 97

PRESUBMIT.pyD06-Sep-20244.4 KiB154104

README.mdD06-Sep-20241 KiB5133

buildD06-Sep-2024693 192

build.jsD06-Sep-202430.7 KiB874647

eslintD06-Sep-20241,004 3111

eslint-allD06-Sep-2024744 203

nodeD06-Sep-2024713 193

npmD06-Sep-2024712 193

package.jsonD06-Sep-20242.3 KiB8382

pnpmD06-Sep-2024713 193

pnpm-lock.yamlD06-Sep-2024216.2 KiB6,5135,675

prettierD06-Sep-20241 KiB3212

prettier-allD06-Sep-2024756 203

run-all-testsD06-Sep-2024844 214

run-dev-serverD06-Sep-2024708 182

run-integrationtestsD06-Sep-2024716 192

run-unittestsD06-Sep-2024709 192

tsconfig.base.jsonD06-Sep-20241.9 KiB2928

tsconfig.jsonD06-Sep-2024654 2423

README.md

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# Install build dependencies
10tools/install-build-deps --ui
11
12# Will build into ./out/ui by default. Can be changed with --out path/
13# The final bundle will be available at ./ui/out/dist/.
14# The build script creates a symlink from ./ui/out to $OUT_PATH/ui/.
15ui/build
16
17# This will automatically build the UI. There is no need to manually run
18# ui/build before running ui/run-dev-server.
19ui/run-dev-server
20```
21
22Then navigate to `http://localhost:10000`.
23
24See also https://perfetto.dev/docs/contributing/build-instructions#ui-development
25
26## Unit tests
27
28```bash
29ui/run-unittests  # Add --watch to run them in watch mode.
30```
31
32## Integration tests (browser screenshot difftests)
33
34```bash
35run-integrationtests
36```
37
38To rebaseline screenshots after a UI change
39
40```bash
41ui/run-integrationtests --rebaseline
42
43tools/test_data upload
44
45git add -A
46
47git commit
48```
49
50See also https://perfetto.dev/docs/contributing/testing#ui-pixel-diff-tests
51