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
Unopinionated tools for running, debugging, testing and benchmarking Mojo apps.
git clone https://github.com/domokit/devtools.git
Devtools offers the following tools:
mojo_run - documentation - shell runnermojo_debug - documentation - debuggermojo_test - apptest runnermojo_benchmark - documentation - perf test runnerAdditionally, 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.
The library is canonically developed in the mojo repository, https://github.com/domokit/devtools is a mirror allowing to consume it separately.