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

Issue 1152763002: Fix tab_switching measurement bug. (Closed)

Created:
5 years, 7 months ago by deanliao
Modified:
5 years, 5 months ago
CC:
bccheng, chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix tab_switching measurement bug. _IsDone is always true, which makes it activate next tab regardless if the tab is rendered. It should wait until a reading of RWH_TabSwitchPaintDuration is obtained before switching to next tab. Also, it should pass each tab to GetHistogram(), not always the last tab. Unittest added. (./run_tests measurements.tab_switching). BUG=None CQ_EXTRA_TRYBOTS=tryserver.chromium.perf:linux_perf_bisect;tryserver.chromium.perf:mac_perf_bisect;tryserver.chromium.perf:win_perf_bisect;tryserver.chromium.perf:android_nexus5_perf_bisect Committed: https://crrev.com/2eee3f91209b8ccf16e7f64c03d42fbafd724ebe Cr-Commit-Position: refs/heads/master@{#337191}

Patch Set 1 #

Patch Set 2 : Unittest added #

Total comments: 2

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Update unittest #

Total comments: 3

Patch Set 5 : rebase and revert parameter name change #

Patch Set 6 : Fix import error #

Patch Set 7 : Fix benchmark_smoke_unittest failure because tab_switching failed to switch tab if there's only one… #

Total comments: 1

Patch Set 8 : Fix broken unittest on Chrome #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -18 lines) Patch
M tools/perf/benchmarks/benchmark_smoke_unittest.py View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -5 lines 0 comments Download
M tools/perf/measurements/tab_switching.py View 1 2 3 4 5 6 7 8 3 chunks +23 lines, -13 lines 0 comments Download
A tools/perf/measurements/tab_switching_unittest.py View 1 2 3 4 5 6 7 8 1 chunk +100 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (25 generated)
deanliao
5 years, 7 months ago (2015-05-22 15:48:08 UTC) #2
nednguyen
Can you add a unittest that will fail without your fix?
5 years, 7 months ago (2015-05-22 16:07:17 UTC) #3
deanliao
On 2015/05/22 16:07:17, nednguyen wrote: > Can you add a unittest that will fail without ...
5 years, 6 months ago (2015-06-15 23:18:12 UTC) #4
nednguyen
https://codereview.chromium.org/1152763002/diff/20001/tools/perf/measurements/tab_switching.py File tools/perf/measurements/tab_switching.py (right): https://codereview.chromium.org/1152763002/diff/20001/tools/perf/measurements/tab_switching.py#newcode86 tools/perf/measurements/tab_switching.py:86: for tab in browser.tabs: IIRC, browser.tabs 's __iter__ doesn't ...
5 years, 6 months ago (2015-06-15 23:24:55 UTC) #5
deanliao
On 2015/06/15 23:24:55, nednguyen wrote: > https://codereview.chromium.org/1152763002/diff/20001/tools/perf/measurements/tab_switching.py > File tools/perf/measurements/tab_switching.py (right): > > https://codereview.chromium.org/1152763002/diff/20001/tools/perf/measurements/tab_switching.py#newcode86 > ...
5 years, 6 months ago (2015-06-16 08:45:31 UTC) #6
deanliao
https://codereview.chromium.org/1152763002/diff/20001/tools/perf/measurements/tab_switching.py File tools/perf/measurements/tab_switching.py (right): https://codereview.chromium.org/1152763002/diff/20001/tools/perf/measurements/tab_switching.py#newcode86 tools/perf/measurements/tab_switching.py:86: for tab in browser.tabs: On 2015/06/15 23:24:55, nednguyen wrote: ...
5 years, 6 months ago (2015-06-16 08:46:18 UTC) #7
nednguyen
+Ethan
5 years, 6 months ago (2015-06-18 05:01:47 UTC) #9
eakuefner
https://codereview.chromium.org/1152763002/diff/40001/tools/perf/measurements/tab_switching_unittest.py File tools/perf/measurements/tab_switching_unittest.py (right): https://codereview.chromium.org/1152763002/diff/40001/tools/perf/measurements/tab_switching_unittest.py#newcode16 tools/perf/measurements/tab_switching_unittest.py:16: class FakePlatform(object): Since you're already importing the mock library, ...
5 years, 6 months ago (2015-06-18 17:23:29 UTC) #10
deanliao
Thanks for the review. https://codereview.chromium.org/1152763002/diff/40001/tools/perf/measurements/tab_switching_unittest.py File tools/perf/measurements/tab_switching_unittest.py (right): https://codereview.chromium.org/1152763002/diff/40001/tools/perf/measurements/tab_switching_unittest.py#newcode16 tools/perf/measurements/tab_switching_unittest.py:16: class FakePlatform(object): On 2015/06/18 17:23:29, ...
5 years, 6 months ago (2015-06-22 06:37:08 UTC) #11
deanliao
On 2015/06/22 06:37:08, deanliao wrote: > Thanks for the review. > > https://codereview.chromium.org/1152763002/diff/40001/tools/perf/measurements/tab_switching_unittest.py > File ...
5 years, 6 months ago (2015-06-23 09:30:35 UTC) #12
eakuefner
lgtm
5 years, 6 months ago (2015-06-23 16:45:14 UTC) #13
nednguyen
https://codereview.chromium.org/1152763002/diff/60001/tools/perf/measurements/tab_switching.py File tools/perf/measurements/tab_switching.py (right): https://codereview.chromium.org/1152763002/diff/60001/tools/perf/measurements/tab_switching.py#newcode63 tools/perf/measurements/tab_switching.py:63: def ValidateAndMeasurePage(self, page, last_tab, results): Why change the param ...
5 years, 6 months ago (2015-06-23 16:56:20 UTC) #14
deanliao
https://codereview.chromium.org/1152763002/diff/60001/tools/perf/measurements/tab_switching.py File tools/perf/measurements/tab_switching.py (right): https://codereview.chromium.org/1152763002/diff/60001/tools/perf/measurements/tab_switching.py#newcode63 tools/perf/measurements/tab_switching.py:63: def ValidateAndMeasurePage(self, page, last_tab, results): On 2015/06/23 16:56:20, nednguyen ...
5 years, 6 months ago (2015-06-24 02:51:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152763002/80001
5 years, 6 months ago (2015-06-24 03:02:05 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/73479)
5 years, 6 months ago (2015-06-24 03:08:37 UTC) #20
nednguyen
lgtm
5 years, 6 months ago (2015-06-24 03:10:24 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152763002/80001
5 years, 6 months ago (2015-06-24 03:10:53 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/73484)
5 years, 6 months ago (2015-06-24 03:17:35 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152763002/100001
5 years, 6 months ago (2015-06-24 03:27:34 UTC) #28
commit-bot: I haz the power
Exceeded global retry quota
5 years, 6 months ago (2015-06-24 04:01:03 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152763002/100001
5 years, 6 months ago (2015-06-24 04:02:17 UTC) #32
commit-bot: I haz the power
Exceeded global retry quota
5 years, 6 months ago (2015-06-24 04:30:25 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152763002/100001
5 years, 6 months ago (2015-06-24 07:55:02 UTC) #36
deanliao
On 2015/06/24 07:55:02, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
5 years, 6 months ago (2015-06-24 08:48:18 UTC) #37
nednguyen
https://codereview.chromium.org/1152763002/diff/120001/tools/perf/benchmarks/benchmark_smoke_unittest.py File tools/perf/benchmarks/benchmark_smoke_unittest.py (right): https://codereview.chromium.org/1152763002/diff/120001/tools/perf/benchmarks/benchmark_smoke_unittest.py#newcode135 tools/perf/benchmarks/benchmark_smoke_unittest.py:135: method = SmokeTestGenerator(benchmark, num_pages=2) This fix is reasonable. But ...
5 years, 6 months ago (2015-06-24 14:53:11 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152763002/120001
5 years, 6 months ago (2015-06-24 14:53:49 UTC) #41
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/80554)
5 years, 6 months ago (2015-06-24 16:17:51 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152763002/120001
5 years, 6 months ago (2015-06-24 16:55:02 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/80599)
5 years, 6 months ago (2015-06-24 18:24:18 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152763002/140001
5 years, 5 months ago (2015-07-01 08:11:21 UTC) #50
commit-bot: I haz the power
Exceeded global retry quota
5 years, 5 months ago (2015-07-01 08:13:30 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152763002/140001
5 years, 5 months ago (2015-07-01 13:43:36 UTC) #54
commit-bot: I haz the power
Exceeded global retry quota
5 years, 5 months ago (2015-07-01 13:46:13 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1152763002/160001
5 years, 5 months ago (2015-07-02 07:14:58 UTC) #59
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 5 months ago (2015-07-02 08:34:12 UTC) #60
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/2eee3f91209b8ccf16e7f64c03d42fbafd724ebe Cr-Commit-Position: refs/heads/master@{#337191}
5 years, 5 months ago (2015-07-02 08:35:57 UTC) #61
dsinclair
5 years, 5 months ago (2015-07-02 15:17:21 UTC) #62
Message was sent while issue was closed.
A revert of this CL (patchset #9 id:160001) has been created in
https://codereview.chromium.org/1212213003/ by dsinclair@chromium.org.

The reason for reverting is: Looks like most of the perf tree has gone red with
the tab_switching tests..

Powered by Google App Engine
This is Rietveld 408576698