Teach `benchmark.mojo` to save the collected trace file to disk.

This patch adds `--save-traces` argument to mojo_benchmark which saves
the traces collected in each benchmark run to disk.

A follow-up patch will need teach the runner to move these files to a
better location on the host machine (including from an Android device).

Fixes #417.

R=qsr@chromium.org

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

Cr-Mirrored-From: https://github.com/domokit/mojo
Cr-Mirrored-Commit: ddfda66c8b3b27457acf97fcfb4ff960440f9a35
1 file changed
tree: c2ffcdc8cfbea786f2005864134b60126e8776f2
  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.