tree: 4beee3e48f5e291b44f6eb8c4c5c6985bc2ffeb9 [path history] [tgz]
  1. config/
  2. playwright/
  3. release/
  4. src/
  5. .eslintrc.js
  6. .gitignore
  7. .prettierignore
  8. .prettierrc.yml
  9. build
  10. BUILD.gn
  11. build.js
  12. eslint
  13. eslint.config.js
  14. format-sources
  15. node
  16. npm
  17. package.json
  18. playwright.config.ts
  19. pnpm
  20. pnpm-lock.yaml
  21. prettier
  22. README.md
  23. run-all-tests
  24. run-dev-server
  25. run-integrationtests
  26. run-unittests
  27. tsconfig.base.json
  28. tsconfig.json
ui/README.md

Perfetto UI

Quick Start

$ git clone https://github.com/google/perfetto/
$ cd perfetto

# Install build dependencies
tools/install-build-deps --ui

# 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/ui-getting-started

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