Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2315)

Unified Diff: apps/benchmark/README.md

Issue 1305193002: Trace-based benchmarking via a mojo app. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Further address Etienne's comments. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « apps/benchmark/BUILD.gn ('k') | apps/benchmark/benchmark_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/benchmark/README.md
diff --git a/apps/benchmark/README.md b/apps/benchmark/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..60d76b78111f33b1c182d233c6c67c3afbed13d7
--- /dev/null
+++ b/apps/benchmark/README.md
@@ -0,0 +1,30 @@
+# benchmark
+
+This application connects to another mojo application, collects traces during
+indicated period of time and computes a number of results based on the collected
+traces. It can be used to measure performance of a mojo app, provided that the
+app being benchmarked participates in the [tracing
+ecosystem](mojo/services/tracing/public/interfaces/tracing.mojom).
+
+## Arguments
+
+The benchmarking app expects the following arguments:
+
+ - `--app=<app_url>` - url of the application to be benchmarked
+ - `--duration=<duration_seconds>` - duration of the benchmark in seconds
+
+any other arguments are assumed to be descriptions of measurements to be
+conducted on the collected trace data. Each measurement has to be of form:
+`<measurement_type>/<trace_event_category>/<trace_event_name>`.
+
+The following measurement types are available:
+
+ - `time_until` - measures time until the first occurence of the event named
+ `trace_event_name` in category `trace_event_category`.
+ - `avg_duration` - measures average duration of all events named
+ `trace_event_name` in category `trace_event_category`.
+
+## Runner script
+
+Devtools offers [a helper script](mojo/devtools/common/mojo_benchmark) allowing
+to run a list of benchmarks, including on an Android device.
« no previous file with comments | « apps/benchmark/BUILD.gn ('k') | apps/benchmark/benchmark_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698