tree: a930515a5f15df66074b1a777e16c1d2253f65b7 [path history] [tgz]
  1. config/
  2. release/
  3. src/
  4. .eslintignore
  5. .eslintrc.js
  6. .gitignore
  7. build
  8. BUILD.gn
  9. build.js
  10. eslint
  11. eslint-all
  12. node
  13. npm
  14. OWNERS
  15. package.json
  16. pnpm
  17. pnpm-lock.yaml
  18. PRESUBMIT.py
  19. README.md
  20. run-all-tests
  21. run-dev-server
  22. run-integrationtests
  23. run-unittests
  24. tsconfig.base.json
  25. tsconfig.json
ui/README.md

Perfetto UI

Quick Start

$ git clone https://android.googlesource.com/platform/external/perfetto/
$ cd perfetto

# Will build into ./out/ui by default. Can be changed with --out path/
# The final bundle will be available at ./ui/out/dist/.
# The build script creates a symlink from ./ui/out to $OUT_PATH/ui/.
ui/build

# This will automatically build the UI. There is no need to manually run
# ui/build before running ui/run-dev-server.
ui/run-dev-server

Then navigate to http://localhost:10000.

See also https://perfetto.dev/docs/contributing/build-instructions#ui-development

Unit tests

ui/run-unittests  # Add --watch to run them in watch mode.

Integration tests (browser screenshot difftests)

run-integrationtests

To rebaseline screenshots after a UI change

ui/run-integrationtests --rebaseline

tools/test_data upload

git add -A

git commit

See also https://perfetto.dev/docs/contributing/testing#ui-pixel-diff-tests