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

Issue 1305193002: Trace-based benchmarking via a mojo app. (Closed)

Created:
5 years, 4 months ago by ppi
Modified:
5 years, 3 months ago
Reviewers:
jamesr, etiennej
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, darin (slow to review), gregsimon, mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Trace-based benchmarking via a mojo app. This patch adds `benchmark.mojo` app for trace-based benchmarking and a runner script. $ mojo/devtools/common/mojo_benchmark mojo/tools/data/benchmarks [Trace me] measurement: time_until/trace_me/DoWork 4488.810000 measurement: avg_duration/trace_me/DoWork 300.449714 [Spinning cube] measurement: time_until/gpu/GpuScheduler:PutChanged 4341.874000 Fixes #371. R=etiennej@chromium.org, jamesr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/1d909941168487e5a0c7f81f6b7c73c026c63054

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : Address James's comments. #

Patch Set 4 : Add tests. #

Total comments: 10

Patch Set 5 : Address James's comments. #

Total comments: 7

Patch Set 6 : Address Etienne's comments. #

Patch Set 7 : Further address Etienne's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1031 lines, -0 lines) Patch
M apps/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A apps/benchmark/BUILD.gn View 1 2 3 4 5 6 1 chunk +59 lines, -0 lines 0 comments Download
A apps/benchmark/README.md View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A apps/benchmark/benchmark_app.cc View 1 2 3 4 5 6 1 chunk +131 lines, -0 lines 0 comments Download
A apps/benchmark/event.h View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A apps/benchmark/event.cc View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
A apps/benchmark/event_unittest.cc View 1 2 3 1 chunk +80 lines, -0 lines 0 comments Download
A apps/benchmark/measurements.h View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
A apps/benchmark/measurements.cc View 1 2 3 1 chunk +91 lines, -0 lines 0 comments Download
A apps/benchmark/measurements_unittest.cc View 1 2 3 1 chunk +108 lines, -0 lines 0 comments Download
A apps/benchmark/run_args.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A apps/benchmark/run_args.cc View 1 2 3 4 5 6 1 chunk +84 lines, -0 lines 0 comments Download
A apps/benchmark/trace_collector_client.h View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
A apps/benchmark/trace_collector_client.cc View 1 chunk +42 lines, -0 lines 0 comments Download
A mojo/devtools/common/mojo_benchmark View 1 chunk +126 lines, -0 lines 0 comments Download
M mojo/tools/data/apptests View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A mojo/tools/data/benchmarks View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
ppi
Hi James, This needs tests, but could you take a first-pass look already?
5 years, 4 months ago (2015-08-21 16:53:30 UTC) #2
jamesr
Thanks, this looks like a better setup. Can I ask why the analysis is done ...
5 years, 4 months ago (2015-08-21 22:56:16 UTC) #3
ppi
Thanks! As for the language, I erred on the side of flexibility - Python apps ...
5 years, 4 months ago (2015-08-24 15:41:05 UTC) #4
ppi
Added tests, ptal.
5 years, 3 months ago (2015-08-27 14:30:08 UTC) #5
jamesr
If you want to use C++ that's OK, but it is pretty harsh about unexpected ...
5 years, 3 months ago (2015-08-27 21:12:38 UTC) #6
ppi
Thanks, James! +Etienne for another and local pair of eyes. https://codereview.chromium.org/1305193002/diff/60001/apps/benchmark/args.cc File apps/benchmark/args.cc (right): https://codereview.chromium.org/1305193002/diff/60001/apps/benchmark/args.cc#newcode21 ...
5 years, 3 months ago (2015-08-28 12:15:11 UTC) #8
etiennej
https://codereview.chromium.org/1305193002/diff/80001/apps/benchmark/args.h File apps/benchmark/args.h (right): https://codereview.chromium.org/1305193002/diff/80001/apps/benchmark/args.h#newcode17 apps/benchmark/args.h:17: struct Args { I would call it BenchmarkRunParameters. https://codereview.chromium.org/1305193002/diff/80001/apps/benchmark/args.h#newcode22 ...
5 years, 3 months ago (2015-08-28 13:54:37 UTC) #9
ppi
Thanks, Etienne, ptal. https://codereview.chromium.org/1305193002/diff/80001/apps/benchmark/args.h File apps/benchmark/args.h (right): https://codereview.chromium.org/1305193002/diff/80001/apps/benchmark/args.h#newcode17 apps/benchmark/args.h:17: struct Args { On 2015/08/28 13:54:37, ...
5 years, 3 months ago (2015-08-28 14:02:06 UTC) #10
etiennej
lgtm
5 years, 3 months ago (2015-08-28 14:17:11 UTC) #11
ppi
https://codereview.chromium.org/1305193002/diff/80001/apps/benchmark/args.h File apps/benchmark/args.h (right): https://codereview.chromium.org/1305193002/diff/80001/apps/benchmark/args.h#newcode17 apps/benchmark/args.h:17: struct Args { On 2015/08/28 14:02:06, ppi wrote: > ...
5 years, 3 months ago (2015-08-28 14:17:13 UTC) #12
ppi
5 years, 3 months ago (2015-08-28 14:28:00 UTC) #13
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
1d909941168487e5a0c7f81f6b7c73c026c63054.

Powered by Google App Engine
This is Rietveld 408576698