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

Issue 2890333002: Tab Switching Benchmark for ChromeOS (Closed)

Created:
3 years, 7 months ago by vovoy
Modified:
3 years, 7 months ago
CC:
chromium-reviews, telemetry-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Tab Switching Benchmark for ChromeOS Copy the tab switching benchmark to cros_benchmarks. Using key events for simulate tab switching behavior to handle the case that some tab contexts may be discarded. Example usage to open 120 tabs: $ ./run_benchmark --browser=cros-chrome --remote=DUT_IP cros_tab_switching.typical_24 --tabset-repeat=5 BUG=724381 Review-Url: https://codereview.chromium.org/2890333002 Cr-Commit-Position: refs/heads/master@{#474975} Committed: https://chromium.googlesource.com/chromium/src/+/2675d3c72d3ad2257e6efb8775b1c54266ccfb7e

Patch Set 1 #

Patch Set 2 : Tab Switching Benchmark for ChromeOS #

Total comments: 15

Patch Set 3 : Wait tab switching completion by checking histogram instead of sleep 2 seconds #

Patch Set 4 : Tab Switching Benchmark for ChromeOS #

Total comments: 2

Patch Set 5 : Using emulated keyboard to send key events. #

Total comments: 2

Patch Set 6 : Add more checks for keyboard emulator #

Patch Set 7 : Minor fixes. #

Total comments: 37

Patch Set 8 : Tab Switching Benchmark for ChromeOS #

Patch Set 9 : Style fixes #

Total comments: 8

Patch Set 10 : Rebase #

Patch Set 11 : Style fixes #

Patch Set 12 : Style fixes #

Total comments: 10

Patch Set 13 : Minor fixes #

Patch Set 14 : Fix: Raise exception in CreateStorySet() will fail presubmit. #

Patch Set 15 : Tab Switching Benchmark for ChromeOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -0 lines) Patch
A tools/perf/contrib/cros_benchmarks/.gitignore View 1 chunk +2 lines, -0 lines 0 comments Download
A tools/perf/contrib/cros_benchmarks/cros_utils.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +174 lines, -0 lines 0 comments Download
A tools/perf/contrib/cros_benchmarks/data/log_key_tab_switch View 1 chunk +12 lines, -0 lines 0 comments Download
A tools/perf/contrib/cros_benchmarks/data/tab_switching.json View 1 1 chunk +9 lines, -0 lines 0 comments Download
A tools/perf/contrib/cros_benchmarks/data/tab_switching.wpr.sha1 View 1 chunk +1 line, -0 lines 0 comments Download
A tools/perf/contrib/cros_benchmarks/tab_switching_bench.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +54 lines, -0 lines 0 comments Download
A tools/perf/contrib/cros_benchmarks/tab_switching_measure.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +44 lines, -0 lines 0 comments Download
A tools/perf/contrib/cros_benchmarks/tab_switching_stories.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +120 lines, -0 lines 0 comments Download

Messages

Total messages: 81 (55 generated)
vovoy
ptal
3 years, 7 months ago (2017-05-19 07:17:22 UTC) #7
deanliao_goog
On 2017/05/19 07:17:22, vovoy wrote: > ptal in progress.
3 years, 7 months ago (2017-05-19 08:53:03 UTC) #8
bccheng
Try to make comments as complete sentences - the first letter should be capitalized, and ...
3 years, 7 months ago (2017-05-19 09:09:14 UTC) #9
deanliao_goog
https://codereview.chromium.org/2890333002/diff/20001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): https://codereview.chromium.org/2890333002/diff/20001/tools/perf/contrib/cros_benchmarks/cros_utils.py#newcode9 tools/perf/contrib/cros_benchmarks/cros_utils.py:9: # find the device support events EV=120013 On 2017/05/19 ...
3 years, 7 months ago (2017-05-19 09:49:46 UTC) #11
vovoy
Waiting to tab switching completion by checking histogram instead of time.sleep(2.0). https://codereview.chromium.org/2890333002/diff/20001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): ...
3 years, 7 months ago (2017-05-22 03:54:08 UTC) #14
bccheng
Adding cywang@ in case he has comments for the emulated keyboard.
3 years, 7 months ago (2017-05-22 08:28:00 UTC) #22
cywang
https://codereview.chromium.org/2890333002/diff/60001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): https://codereview.chromium.org/2890333002/diff/60001/tools/perf/contrib/cros_benchmarks/cros_utils.py#newcode16 tools/perf/contrib/cros_benchmarks/cros_utils.py:16: def FindKeyboardDevice(dut_ip): Try to use an emulated keyboard instead(e.g. ...
3 years, 7 months ago (2017-05-22 09:04:04 UTC) #23
vovoy
https://codereview.chromium.org/2890333002/diff/60001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): https://codereview.chromium.org/2890333002/diff/60001/tools/perf/contrib/cros_benchmarks/cros_utils.py#newcode16 tools/perf/contrib/cros_benchmarks/cros_utils.py:16: def FindKeyboardDevice(dut_ip): On 2017/05/22 09:04:04, cywang wrote: > Try ...
3 years, 7 months ago (2017-05-23 02:26:10 UTC) #26
cywang
https://codereview.chromium.org/2890333002/diff/80001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): https://codereview.chromium.org/2890333002/diff/80001/tools/perf/contrib/cros_benchmarks/cros_utils.py#newcode82 tools/perf/contrib/cros_benchmarks/cros_utils.py:82: '/usr/local/autotest/cros/input_playback/keyboard.prop'] LGTM in keyboard emulation, please make sure if ...
3 years, 7 months ago (2017-05-23 02:56:57 UTC) #28
vovoy
https://codereview.chromium.org/2890333002/diff/80001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): https://codereview.chromium.org/2890333002/diff/80001/tools/perf/contrib/cros_benchmarks/cros_utils.py#newcode82 tools/perf/contrib/cros_benchmarks/cros_utils.py:82: '/usr/local/autotest/cros/input_playback/keyboard.prop'] On 2017/05/23 02:56:57, cywang wrote: > LGTM in ...
3 years, 7 months ago (2017-05-23 03:24:10 UTC) #31
cywang
On 2017/05/23 03:24:10, vovoy wrote: > https://codereview.chromium.org/2890333002/diff/80001/tools/perf/contrib/cros_benchmarks/cros_utils.py > File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): > > https://codereview.chromium.org/2890333002/diff/80001/tools/perf/contrib/cros_benchmarks/cros_utils.py#newcode82 > ...
3 years, 7 months ago (2017-05-23 04:19:43 UTC) #32
bccheng
lgtm
3 years, 7 months ago (2017-05-23 05:45:40 UTC) #35
bccheng
lgtm
3 years, 7 months ago (2017-05-23 05:45:43 UTC) #36
deanliao_goog
https://codereview.chromium.org/2890333002/diff/120001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): https://codereview.chromium.org/2890333002/diff/120001/tools/perf/contrib/cros_benchmarks/cros_utils.py#newcode18 tools/perf/contrib/cros_benchmarks/cros_utils.py:18: Ah, Python style rule said that top level methods ...
3 years, 7 months ago (2017-05-23 08:54:26 UTC) #41
vovoy
Thanks for your thoroughly review. https://codereview.chromium.org/2890333002/diff/120001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): https://codereview.chromium.org/2890333002/diff/120001/tools/perf/contrib/cros_benchmarks/cros_utils.py#newcode18 tools/perf/contrib/cros_benchmarks/cros_utils.py:18: On 2017/05/23 08:54:25, deanliao_goog ...
3 years, 7 months ago (2017-05-24 09:17:22 UTC) #44
deanliao_goog
Some tiny picks. You may submit it at will after fixing them. https://codereview.chromium.org/2890333002/diff/120001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py ...
3 years, 7 months ago (2017-05-24 10:10:53 UTC) #45
deanliao_goog
lgtm
3 years, 7 months ago (2017-05-24 10:11:12 UTC) #46
vovoy
https://codereview.chromium.org/2890333002/diff/160001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): https://codereview.chromium.org/2890333002/diff/160001/tools/perf/contrib/cros_benchmarks/cros_utils.py#newcode37 tools/perf/contrib/cros_benchmarks/cros_utils.py:37: Returns: On 2017/05/24 10:10:52, deanliao_goog wrote: > One blank ...
3 years, 7 months ago (2017-05-25 02:25:16 UTC) #47
vovoy
https://codereview.chromium.org/2890333002/diff/120001/tools/perf/contrib/cros_benchmarks/tab_switching_stories.py File tools/perf/contrib/cros_benchmarks/tab_switching_stories.py (right): https://codereview.chromium.org/2890333002/diff/120001/tools/perf/contrib/cros_benchmarks/tab_switching_stories.py#newcode41 tools/perf/contrib/cros_benchmarks/tab_switching_stories.py:41: print 'opening tab:', i On 2017/05/24 09:17:22, vovoy wrote: ...
3 years, 7 months ago (2017-05-25 02:52:31 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2890333002/200001
3 years, 7 months ago (2017-05-25 04:55:43 UTC) #55
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 7 months ago (2017-05-25 04:55:46 UTC) #57
bccheng
cylee@ you are a committer. Could you take a look and give lgtm?
3 years, 7 months ago (2017-05-25 07:18:10 UTC) #59
cylee1
lgtm with nits https://codereview.chromium.org/2890333002/diff/220001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): https://codereview.chromium.org/2890333002/diff/220001/tools/perf/contrib/cros_benchmarks/cros_utils.py#newcode33 tools/perf/contrib/cros_benchmarks/cros_utils.py:33: than discarding the first valid context. ...
3 years, 7 months ago (2017-05-25 21:21:35 UTC) #64
vovoy
https://codereview.chromium.org/2890333002/diff/220001/tools/perf/contrib/cros_benchmarks/cros_utils.py File tools/perf/contrib/cros_benchmarks/cros_utils.py (right): https://codereview.chromium.org/2890333002/diff/220001/tools/perf/contrib/cros_benchmarks/cros_utils.py#newcode33 tools/perf/contrib/cros_benchmarks/cros_utils.py:33: than discarding the first valid context. On 2017/05/25 21:21:35, ...
3 years, 7 months ago (2017-05-26 08:19:36 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2890333002/280001
3 years, 7 months ago (2017-05-26 09:20:53 UTC) #78
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 09:25:56 UTC) #81
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/2675d3c72d3ad2257e6efb8775b1...

Powered by Google App Engine
This is Rietveld 408576698