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

Issue 907503002: telemetry: Create a helper class to quickly extend profiles. (Closed)

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

Description

telemetry: Create a helper class to quickly extend profiles. I added the class FastNavigationProfileExtender, which is not yet hooked up to any profile creators. The class batch navigates tabs in a browser, which allows a profile creator to quickly perform a large number of URL navigations. BUG=442546 Committed: https://crrev.com/16b5175f8967c8ea8430f7ada22eeb8586776f9a Cr-Commit-Position: refs/heads/master@{#316738}

Patch Set 1 #

Patch Set 2 : Minor fixes. #

Total comments: 4

Patch Set 3 : Comments from nednguyen. #

Total comments: 18

Patch Set 4 : #

Total comments: 5

Patch Set 5 : Comments from nednguyen, round three. #

Patch Set 6 : Modify profile_generator to allow more types of classes in the profile_generator/ directory. #

Total comments: 27

Patch Set 7 : Comments from nednguyen. #

Patch Set 8 : Rename _PAGE_LOAD_TIMEOUT_IN_SECONDS. #

Patch Set 9 : Remove changes to profile_generator.py. #

Total comments: 2

Patch Set 10 : Wait for tab urls to change as a sign that navigation has started. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -0 lines) Patch
A tools/perf/profile_creators/fast_navigation_profile_extender.py View 1 2 3 4 5 6 7 8 9 1 chunk +201 lines, -0 lines 4 comments Download
A tools/perf/profile_creators/fast_navigation_profile_extender_unittest.py View 1 2 3 4 5 6 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (13 generated)
erikchen
nednguyen: Please review. I've intentionally avoided using PageTest, SharedPageState, UserStory, UserStoryRunner, etc. because the existing ...
5 years, 10 months ago (2015-02-06 19:51:27 UTC) #2
nednguyen
On 2015/02/06 19:51:27, erikchen wrote: > nednguyen: Please review. > > I've intentionally avoided using ...
5 years, 10 months ago (2015-02-06 20:13:00 UTC) #3
nednguyen
I think your approach of creating a base class for profile extender here is good. ...
5 years, 10 months ago (2015-02-09 20:57:18 UTC) #4
erikchen
nednguyen: PTAL https://codereview.chromium.org/907503002/diff/20001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/20001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode35 tools/perf/profile_creators/fast_navigation_profile_extender.py:35: profile_extender.RunUserStory() On 2015/02/09 20:57:18, nednguyen wrote: > ...
5 years, 10 months ago (2015-02-09 21:17:35 UTC) #5
nednguyen
Please provide unittest coverage for this. I think that would change how you want to ...
5 years, 10 months ago (2015-02-09 21:35:03 UTC) #6
erikchen
On 2015/02/09 21:35:03, nednguyen wrote: > Please provide unittest coverage for this. I think that ...
5 years, 10 months ago (2015-02-10 00:44:56 UTC) #8
erikchen
https://codereview.chromium.org/907503002/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode31 tools/perf/profile_creators/fast_navigation_profile_extender.py:31: self._navigation_urls = self.NavigationUrls() On 2015/02/09 21:35:02, nednguyen wrote: > ...
5 years, 10 months ago (2015-02-10 00:45:03 UTC) #9
nednguyen
https://codereview.chromium.org/907503002/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode50 tools/perf/profile_creators/fast_navigation_profile_extender.py:50: self._queued_tabs = [] On 2015/02/10 00:45:02, erikchen wrote: > ...
5 years, 10 months ago (2015-02-10 18:48:44 UTC) #10
erikchen
nednguyen: PTAL https://codereview.chromium.org/907503002/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode50 tools/perf/profile_creators/fast_navigation_profile_extender.py:50: self._queued_tabs = [] On 2015/02/10 18:48:43, nednguyen ...
5 years, 10 months ago (2015-02-10 21:30:11 UTC) #11
nednguyen
Let's add your runnable python script so we can actually run something with this patch. ...
5 years, 10 months ago (2015-02-10 22:11:38 UTC) #12
erikchen
On 2015/02/10 22:11:38, nednguyen wrote: > Let's add your runnable python script so we can ...
5 years, 10 months ago (2015-02-11 02:45:46 UTC) #13
erikchen
https://codereview.chromium.org/907503002/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode50 tools/perf/profile_creators/fast_navigation_profile_extender.py:50: self._queued_tabs = [] On 2015/02/10 22:11:37, nednguyen wrote: > ...
5 years, 10 months ago (2015-02-11 02:45:50 UTC) #14
nednguyen
Please answer the non style-nits question first before making further changes to fix style ones. ...
5 years, 10 months ago (2015-02-12 02:10:54 UTC) #15
erikchen
https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode111 tools/perf/profile_creators/fast_navigation_profile_extender.py:111: # both exceptions. On 2015/02/12 02:10:53, nednguyen wrote: > ...
5 years, 10 months ago (2015-02-12 02:26:07 UTC) #16
erikchen
nednguyen: PTAL. https://codereview.chromium.org/907503002/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/40001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode50 tools/perf/profile_creators/fast_navigation_profile_extender.py:50: self._queued_tabs = [] On 2015/02/12 02:10:53, nednguyen ...
5 years, 10 months ago (2015-02-12 03:02:58 UTC) #18
nednguyen
https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode111 tools/perf/profile_creators/fast_navigation_profile_extender.py:111: # both exceptions. On 2015/02/12 02:26:07, erikchen wrote: > ...
5 years, 10 months ago (2015-02-12 03:17:59 UTC) #19
erikchen
https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode124 tools/perf/profile_creators/fast_navigation_profile_extender.py:124: end_time = time.time() + self._PAGE_LOAD_TIMEOUT_IN_SECONDS On 2015/02/12 03:17:59, nednguyen ...
5 years, 10 months ago (2015-02-12 03:24:18 UTC) #20
nednguyen
https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode124 tools/perf/profile_creators/fast_navigation_profile_extender.py:124: end_time = time.time() + self._PAGE_LOAD_TIMEOUT_IN_SECONDS On 2015/02/12 03:24:18, erikchen ...
5 years, 10 months ago (2015-02-12 03:29:53 UTC) #21
nednguyen
https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode124 tools/perf/profile_creators/fast_navigation_profile_extender.py:124: end_time = time.time() + self._PAGE_LOAD_TIMEOUT_IN_SECONDS On 2015/02/12 03:24:18, erikchen ...
5 years, 10 months ago (2015-02-12 03:29:53 UTC) #22
erikchen
On 2015/02/12 03:29:53, nednguyen wrote: > https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py > File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): > > https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode124 > ...
5 years, 10 months ago (2015-02-12 03:36:06 UTC) #23
erikchen
https://codereview.chromium.org/907503002/diff/120001/tools/telemetry/telemetry/page/profile_generator.py File tools/telemetry/telemetry/page/profile_generator.py (right): https://codereview.chromium.org/907503002/diff/120001/tools/telemetry/telemetry/page/profile_generator.py#newcode36 tools/telemetry/telemetry/page/profile_generator.py:36: if test_name.endswith('_creator'): On 2015/02/12 03:17:59, nednguyen wrote: > On ...
5 years, 10 months ago (2015-02-12 03:38:35 UTC) #24
nednguyen
https://codereview.chromium.org/907503002/diff/120001/tools/telemetry/telemetry/page/profile_generator.py File tools/telemetry/telemetry/page/profile_generator.py (right): https://codereview.chromium.org/907503002/diff/120001/tools/telemetry/telemetry/page/profile_generator.py#newcode36 tools/telemetry/telemetry/page/profile_generator.py:36: if test_name.endswith('_creator'): On 2015/02/12 03:38:35, erikchen wrote: > On ...
5 years, 10 months ago (2015-02-12 16:45:52 UTC) #25
nednguyen
https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender_unittest.py File tools/perf/profile_creators/fast_navigation_profile_extender_unittest.py (right): https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender_unittest.py#newcode69 tools/perf/profile_creators/fast_navigation_profile_extender_unittest.py:69: self.assertEqual(count, expected_tab_navigation_count) On 2015/02/12 03:17:59, nednguyen wrote: > Can ...
5 years, 10 months ago (2015-02-12 16:53:56 UTC) #26
erikchen
https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender_unittest.py File tools/perf/profile_creators/fast_navigation_profile_extender_unittest.py (right): https://codereview.chromium.org/907503002/diff/120001/tools/perf/profile_creators/fast_navigation_profile_extender_unittest.py#newcode69 tools/perf/profile_creators/fast_navigation_profile_extender_unittest.py:69: self.assertEqual(count, expected_tab_navigation_count) On 2015/02/12 16:53:56, nednguyen wrote: > On ...
5 years, 10 months ago (2015-02-12 18:16:46 UTC) #27
nednguyen
lgtm. But please fix the arbitrary sleep before landing this. https://codereview.chromium.org/907503002/diff/200001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/200001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode144 ...
5 years, 10 months ago (2015-02-12 20:54:21 UTC) #28
erikchen
https://codereview.chromium.org/907503002/diff/200001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/200001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode144 tools/perf/profile_creators/fast_navigation_profile_extender.py:144: time.sleep(self._NAVIGATION_COMMIT_WAIT_IN_SECONDS) On 2015/02/12 20:54:21, nednguyen wrote: > Please wait ...
5 years, 10 months ago (2015-02-17 19:00:21 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/907503002/220001
5 years, 10 months ago (2015-02-17 19:02:15 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/907503002/200001
5 years, 10 months ago (2015-02-17 20:22:53 UTC) #36
erikchen
nednguyen: PTAL Diff patch set 10 against patch set 9 to see changes since your ...
5 years, 10 months ago (2015-02-17 22:51:54 UTC) #41
nednguyen
https://codereview.chromium.org/907503002/diff/300001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/300001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode91 tools/perf/profile_creators/fast_navigation_profile_extender.py:91: def _WaitForUrlToChange(self, tab, initial_url, timeout): telemetry already has a ...
5 years, 10 months ago (2015-02-17 23:38:10 UTC) #42
erikchen
https://codereview.chromium.org/907503002/diff/300001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/300001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode91 tools/perf/profile_creators/fast_navigation_profile_extender.py:91: def _WaitForUrlToChange(self, tab, initial_url, timeout): On 2015/02/17 23:38:10, nednguyen ...
5 years, 10 months ago (2015-02-17 23:46:10 UTC) #43
nednguyen
https://codereview.chromium.org/907503002/diff/300001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/300001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode91 tools/perf/profile_creators/fast_navigation_profile_extender.py:91: def _WaitForUrlToChange(self, tab, initial_url, timeout): On 2015/02/17 23:46:10, erikchen ...
5 years, 10 months ago (2015-02-17 23:50:10 UTC) #44
erikchen
https://codereview.chromium.org/907503002/diff/300001/tools/perf/profile_creators/fast_navigation_profile_extender.py File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): https://codereview.chromium.org/907503002/diff/300001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode91 tools/perf/profile_creators/fast_navigation_profile_extender.py:91: def _WaitForUrlToChange(self, tab, initial_url, timeout): On 2015/02/17 23:50:10, nednguyen ...
5 years, 10 months ago (2015-02-17 23:59:38 UTC) #45
nednguyen
On 2015/02/17 23:59:38, erikchen wrote: > https://codereview.chromium.org/907503002/diff/300001/tools/perf/profile_creators/fast_navigation_profile_extender.py > File tools/perf/profile_creators/fast_navigation_profile_extender.py (right): > > https://codereview.chromium.org/907503002/diff/300001/tools/perf/profile_creators/fast_navigation_profile_extender.py#newcode91 > ...
5 years, 10 months ago (2015-02-18 00:06:49 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/907503002/300001
5 years, 10 months ago (2015-02-18 00:10:08 UTC) #48
commit-bot: I haz the power
Committed patchset #10 (id:300001)
5 years, 10 months ago (2015-02-18 02:02:23 UTC) #49
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 02:03:21 UTC) #50
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/16b5175f8967c8ea8430f7ada22eeb8586776f9a
Cr-Commit-Position: refs/heads/master@{#316738}

Powered by Google App Engine
This is Rietveld 408576698