Files
react-native-devtools-frontend/test/perf
Paul Lewis 449ac187cb Adds manual boot perf script
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>
2019-12-03 10:32:56 +00:00
..
2019-12-03 10:32:56 +00:00
2019-12-03 10:32:56 +00:00
2019-12-03 10:32:56 +00:00

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.

  1. Run the DevTools frontend server: npm run server
  2. 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.