OLD | NEW |
---|---|
(Empty) | |
1 # benchmark | |
jamesr
2015/08/21 22:56:16
yay documentation!
ppi
2015/08/24 15:41:05
Concurred:).
| |
2 | |
3 This application connects to another mojo application, collects traces during | |
4 indicated period of time and computes a number of results based on the collected | |
5 traces. It can be used to measure performance of a mojo app, provided that the | |
6 app being benchmarked participates in the [tracing | |
7 ecosystem](mojo/services/tracing/public/interfaces/tracing.mojom). | |
8 | |
9 ## Arguments | |
10 | |
11 The benchmarking app expects the following arguments: | |
12 | |
13 - `--app=<app_url>` - url of the application to be benchmarked | |
14 - `--duration=<duration_seconds>` - duration of the benchmark in seconds | |
15 | |
16 any other arguments are assumed to be descriptions of measurements to be | |
17 conducted on the collected trace data. Each measurement has to be of form: | |
18 `<measurement_type>/<trace_event_category>/<trace_event_name>`. | |
19 | |
20 The following measurement types are available: | |
21 | |
22 - `time_until` - measures time until the first occurence of the event named | |
23 `trace_event_name` in category `trace_event_category`. | |
24 - `avg_duration` - measures average duration of all events named | |
25 `trace_event_name` in category `trace_event_category`. | |
26 | |
27 ## Runner script | |
28 | |
29 Devtools offer [a helper script](mojo/devtools/common/mojo_benchmark) allowing | |
jamesr
2015/08/21 22:56:16
nit: "Devtools offers", perhaps?
ppi
2015/08/24 15:41:05
Done.
| |
30 to run a list of benchmarks, including on an Android device. | |
OLD | NEW |