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

Issue 300963004: cc: Add message passing mechanism to micro benchmarking. (Closed)

Created:
6 years, 6 months ago by ernstm
Modified:
6 years, 6 months ago
Reviewers:
jamesr, vmpstr
CC:
chromium-reviews, extensions-reviews_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Add message passing mechanism to micro benchmarking. Add a mechansim to send messages to running micro benchmarks through the GPU benchmarking extension. This will be used for example to shut down a running micro benchmark from telemetry. R=vmpstr@chromium.org,jamesr@chromium.org BUG=376379 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273726

Patch Set 1 #

Total comments: 12

Patch Set 2 : Clean-ups #

Total comments: 2

Patch Set 3 : Fix comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -148 lines) Patch
M cc/debug/micro_benchmark.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M cc/debug/micro_benchmark.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M cc/debug/micro_benchmark_controller.h View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M cc/debug/micro_benchmark_controller.cc View 1 3 chunks +26 lines, -2 lines 0 comments Download
M cc/debug/micro_benchmark_controller_unittest.cc View 5 chunks +47 lines, -16 lines 0 comments Download
M cc/debug/unittest_only_benchmark.h View 1 2 chunks +1 line, -1 line 0 comments Download
M cc/debug/unittest_only_benchmark.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M cc/test/fake_layer_tree_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 2 chunks +6 lines, -1 line 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 5 chunks +154 lines, -116 lines 3 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 chunk +7 lines, -1 line 0 comments Download
M tools/perf/measurements/rasterize_and_record_micro.py View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
ernstm
PTAL
6 years, 6 months ago (2014-05-28 21:00:32 UTC) #1
vmpstr
Overall looks good, just a few comments below. Also, I think it might be worth ...
6 years, 6 months ago (2014-05-28 21:16:25 UTC) #2
ernstm
https://codereview.chromium.org/300963004/diff/1/cc/debug/micro_benchmark.h File cc/debug/micro_benchmark.h (right): https://codereview.chromium.org/300963004/diff/1/cc/debug/micro_benchmark.h#newcode27 cc/debug/micro_benchmark.h:27: explicit MicroBenchmark(const DoneCallback& callback, int id); On 2014/05/28 21:16:25, ...
6 years, 6 months ago (2014-05-28 21:51:55 UTC) #3
vmpstr
cc/ lgtm. Thanks! https://codereview.chromium.org/300963004/diff/20001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/300963004/diff/20001/cc/trees/layer_tree_host.h#newcode281 cc/trees/layer_tree_host.h:281: // Returns the id of the ...
6 years, 6 months ago (2014-05-28 22:07:28 UTC) #4
ernstm
https://codereview.chromium.org/300963004/diff/20001/cc/trees/layer_tree_host.h File cc/trees/layer_tree_host.h (right): https://codereview.chromium.org/300963004/diff/20001/cc/trees/layer_tree_host.h#newcode281 cc/trees/layer_tree_host.h:281: // Returns the id of the benchmark on success, ...
6 years, 6 months ago (2014-05-28 22:29:22 UTC) #5
ernstm
On 2014/05/28 22:29:22, ernstm wrote: > https://codereview.chromium.org/300963004/diff/20001/cc/trees/layer_tree_host.h > File cc/trees/layer_tree_host.h (right): > > https://codereview.chromium.org/300963004/diff/20001/cc/trees/layer_tree_host.h#newcode281 > ...
6 years, 6 months ago (2014-05-29 20:19:59 UTC) #6
jamesr
I'm having trouble understanding the diff. Can you tell what's going on? https://codereview.chromium.org/300963004/diff/40001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc ...
6 years, 6 months ago (2014-05-29 20:35:00 UTC) #7
ernstm
https://codereview.chromium.org/300963004/diff/40001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): https://codereview.chromium.org/300963004/diff/40001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode217 content/renderer/gpu/gpu_benchmarking_extension.cc:217: "if (typeof(chrome) == 'undefined') {" On 2014/05/29 20:35:01, jamesr ...
6 years, 6 months ago (2014-05-29 20:38:36 UTC) #8
jamesr
lgtm https://codereview.chromium.org/300963004/diff/40001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): https://codereview.chromium.org/300963004/diff/40001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode217 content/renderer/gpu/gpu_benchmarking_extension.cc:217: "if (typeof(chrome) == 'undefined') {" On 2014/05/29 20:38:36, ...
6 years, 6 months ago (2014-05-29 20:39:41 UTC) #9
ernstm
The CQ bit was checked by ernstm@chromium.org
6 years, 6 months ago (2014-05-29 20:44:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/300963004/40001
6 years, 6 months ago (2014-05-29 20:46:51 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 05:31:56 UTC) #12
Message was sent while issue was closed.
Change committed as 273726

Powered by Google App Engine
This is Rietveld 408576698