Refactor mojo_benchmark to get rid of warm/cold start special cases.

This patch extracts a pre-processing step in mojo_benchmark that
rewrites the given list of benchmarks to run, yielding two benchmarks
corresponding to the warm start case and to the cold start case for each
benchmark defined in the original list.

This simplifies the logic afterwards which does not need to reason about
cold start vs warm start cases. This will also allow us to easily add
other variants in the future.

R=viettrungluu@chromium.org

Review URL: https://codereview.chromium.org/1400003005 .

Cr-Mirrored-From: https://github.com/domokit/mojo
Cr-Mirrored-Commit: 17b94ae165808758460062091779fab5ba14c20d
1 file changed
tree: 104e883516ba99f65fb2821720b6543ced94fa56
  1. android_gdb/
  2. android_stack_parser/
  3. devtoolslib/
  4. docs/
  5. .gitignore
  6. mojo_benchmark
  7. mojo_debug
  8. mojo_run
  9. mojo_test
  10. README.md
  11. remote_adb_setup
README.md

Devtools

Unopinionated tools for running, debugging, testing and benchmarking Mojo apps.

Install

git clone https://github.com/domokit/devtools.git

Contents

Devtools offers the following tools:

Additionally, remote_adb_setup script helps to configure adb on a remote machine to communicate with a device attached to a local machine, forwarding the ports used by mojo_run.

Development

The library is canonically developed in the mojo repository, https://github.com/domokit/devtools is a mirror allowing to consume it separately.