mojo_benchmark: aggregate results over multiple runs.

This patch allows to pass `--aggregate N` to `mojo_benchmark`, causing
the script to run each benchmark N times and aggregate the results.

When uploading results to the dashboard, a full vector of all results on
individual runs is uploaded, so that statistics (e.g. std dev) are
visible in the dashboard.

Fixes https://github.com/domokit/devtools/issues/54.

R=qsr@chromium.org

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

Cr-Mirrored-From: https://github.com/domokit/mojo
Cr-Mirrored-Commit: 574e2347ec780280488c5ef64a803d5c33f06c4d
4 files changed
tree: 245d7f95f8f3a4c82071de23624a6dae7394ae2f
  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.