mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-03 02:21:05 +08:00
This script loads the DevTools frontend in hosted mode and waits for the elements panel to appear. After this it calculates the mean and median boot times and logs them out. Bug: 1027519 Change-Id: I01094a95d5178bbf60f964a5c26e92efa604b1e3 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1942287 Commit-Queue: Paul Lewis <aerotwist@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
To run the test manually.
You can either run this via the Python script, which will start the DevTools frontend in hosted mode automatically.
python scripts/test/run_boot_perf_check.py --chrome-binary=/path/to/Chromium
Or you can run the test via Node, but you will need to launch the server prior.
- Run the DevTools frontend server:
npm run server - Exec the test:
node test/bootperf/bootperf.js --chrome-binary=/path/to/Chromium
If you want to look at the flags for bootperf run it with --help.