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