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

Issue 825703003: Change profile_creator to not subclass page_test (Closed)

Created:
6 years ago by erikchen
Modified:
5 years, 11 months ago
Reviewers:
dtu
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@telemetry_profile_generation
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change profile_creator to not subclass page_test. No intended behavioral change. This CL is purely a refactor. Previously, common logic for profile generation was held in profile_generator.py, and subclasses of profile_creator were merely different page_tests. This structure has two problems: - It relies on the assumption that the logic for generating profiles is relatively similar, modulo some differences in page navigation. There are currently only 2 subclasses of profile_creator, and they are already diverging in behavior. I will soon be adding more. - It doesn't allow for composition of profile generation. In the near future, there will be a profile creator that takes an existing profile, and adds 25 extensions to it. Another profile creator will take that profile, and add 100 bookmarks. Another one will then perform 1000 navigations. BUG=444230, 442546 Committed: https://crrev.com/8c2882777864cfbe31941bb9c610c4f2f97b3c9f Cr-Commit-Position: refs/heads/master@{#310856}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Comments from dtu. #

Patch Set 3 : Fix a refactor error in _ExtensionPageTest.__init__() (not that it matters anyways, since the class… #

Patch Set 4 : Rebase against top of tree. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -101 lines) Patch
M tools/perf/profile_creators/extensions_profile_creator.py View 1 2 3 7 chunks +92 lines, -62 lines 0 comments Download
M tools/perf/profile_creators/small_profile_creator.py View 1 chunk +45 lines, -16 lines 0 comments Download
M tools/telemetry/telemetry/page/profile_creator.py View 1 1 chunk +16 lines, -11 lines 0 comments Download
M tools/telemetry/telemetry/page/profile_generator.py View 1 1 chunk +8 lines, -11 lines 0 comments Download
M tools/telemetry/telemetry/page/record_wpr.py View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 17 (6 generated)
erikchen
dtu: Please review. I considered moving profile_creator.py and profile_generator.py out of tools/telemetry/telemetry/page entirely (and into ...
6 years ago (2014-12-23 22:36:08 UTC) #3
dtu
On 2014/12/23 22:36:08, erikchen wrote: > dtu: Please review. > > I considered moving profile_creator.py ...
5 years, 11 months ago (2015-01-09 01:23:48 UTC) #4
dtu
https://codereview.chromium.org/825703003/diff/20001/tools/perf/profile_creators/extensions_profile_creator.py File tools/perf/profile_creators/extensions_profile_creator.py (right): https://codereview.chromium.org/825703003/diff/20001/tools/perf/profile_creators/extensions_profile_creator.py#newcode90 tools/perf/profile_creators/extensions_profile_creator.py:90: class PageTest(page_test.PageTest): I'm finding the nested classes hard to ...
5 years, 11 months ago (2015-01-09 01:23:58 UTC) #5
erikchen
On 2015/01/09 01:23:48, dtu wrote: > On 2014/12/23 22:36:08, erikchen wrote: > > dtu: Please ...
5 years, 11 months ago (2015-01-09 03:01:37 UTC) #6
erikchen
dtu: PTAL https://codereview.chromium.org/825703003/diff/20001/tools/perf/profile_creators/extensions_profile_creator.py File tools/perf/profile_creators/extensions_profile_creator.py (right): https://codereview.chromium.org/825703003/diff/20001/tools/perf/profile_creators/extensions_profile_creator.py#newcode90 tools/perf/profile_creators/extensions_profile_creator.py:90: class PageTest(page_test.PageTest): On 2015/01/09 01:23:58, dtu wrote: ...
5 years, 11 months ago (2015-01-09 03:12:42 UTC) #8
dtu
lgtm
5 years, 11 months ago (2015-01-09 18:46:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/825703003/80001
5 years, 11 months ago (2015-01-09 18:50:16 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/47378) android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/36033) android_chromium_gn_compile_dbg ...
5 years, 11 months ago (2015-01-09 18:55:11 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/825703003/100001
5 years, 11 months ago (2015-01-09 19:14:17 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:100001)
5 years, 11 months ago (2015-01-09 21:16:09 UTC) #16
commit-bot: I haz the power
5 years, 11 months ago (2015-01-09 21:17:28 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8c2882777864cfbe31941bb9c610c4f2f97b3c9f
Cr-Commit-Position: refs/heads/master@{#310856}

Powered by Google App Engine
This is Rietveld 408576698