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

Issue 2386083003: Add background stories to MobileSystemHealth (Closed)

Created:
4 years, 2 months ago by hjd
Modified:
4 years, 1 month ago
CC:
chromium-reviews, telemetry-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add background stories to MobileSystemHealth This adds some background stories to the system health story set. These stories put the browser into the background before measuring memory use. At the moment these stories are only enabled for mobile since backgrounding only works on mobile. BUG=chromium:652205 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.perf:android_s5_perf_cq;master.tryserver.chromium.perf:linux_perf_cq;master.tryserver.chromium.perf:mac_retina_perf_cq;master.tryserver.chromium.perf:winx64_10_perf_cq Committed: https://crrev.com/81b7c28dc5a75396861fca85ace8c1420224af6b Cr-Commit-Position: refs/heads/master@{#427320}

Patch Set 1 #

Total comments: 3

Patch Set 2 : attempt 2 #

Patch Set 3 : use Background/Foreground methods #

Total comments: 8

Patch Set 4 : address comments #

Total comments: 4

Patch Set 5 : add other stories #

Patch Set 6 : remove wait #

Total comments: 6

Patch Set 7 : update urls #

Patch Set 8 : add gmail story #

Total comments: 1

Patch Set 9 : no mixin #

Patch Set 10 : fixup stories #

Total comments: 7

Patch Set 11 : fix a typo & click on nytime video #

Total comments: 1

Patch Set 12 : update to use new scroll #

Patch Set 13 : record pages #

Total comments: 2

Patch Set 14 : use ScrollPageToElement #

Total comments: 9

Patch Set 15 : rerecord gmail #

Patch Set 16 : tweak stories some more #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -8 lines) Patch
M tools/perf/page_sets/data/system_health_mobile.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +19 lines, -2 lines 0 comments Download
A tools/perf/page_sets/data/system_health_mobile_043.wpr.sha1 View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A tools/perf/page_sets/data/system_health_mobile_044.wpr.sha1 View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A tools/perf/page_sets/data/system_health_mobile_045.wpr.sha1 View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A tools/perf/page_sets/data/system_health_mobile_046.wpr.sha1 View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A tools/perf/page_sets/data/system_health_mobile_047.wpr.sha1 View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A tools/perf/page_sets/data/system_health_mobile_048.wpr.sha1 View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A tools/perf/page_sets/data/system_health_mobile_050.wpr.sha1 View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A tools/perf/page_sets/data/system_health_mobile_052.wpr.sha1 View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A tools/perf/page_sets/system_health/background_stories.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +80 lines, -0 lines 0 comments Download
M tools/perf/page_sets/system_health/loading_stories.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 49 (10 generated)
hjd
First pass of the background system health memory benchmarks :) Maybe we could chat in ...
4 years, 2 months ago (2016-10-03 11:23:27 UTC) #4
nednguyen
https://codereview.chromium.org/2386083003/diff/40001/tools/perf/page_sets/system_health/background_stories.py File tools/perf/page_sets/system_health/background_stories.py (right): https://codereview.chromium.org/2386083003/diff/40001/tools/perf/page_sets/system_health/background_stories.py#newcode18 tools/perf/page_sets/system_health/background_stories.py:18: action_runner.tab.browser.Background() Should we wait few seconds after backgrounding to ...
4 years, 2 months ago (2016-10-05 13:10:50 UTC) #7
perezju
https://codereview.chromium.org/2386083003/diff/1/tools/perf/benchmarks/system_health.py File tools/perf/benchmarks/system_health.py (right): https://codereview.chromium.org/2386083003/diff/1/tools/perf/benchmarks/system_health.py#newcode121 tools/perf/benchmarks/system_health.py:121: return 'system_health.memory_%s' % cls.PLATFORM Instead of adding a new ...
4 years, 2 months ago (2016-10-05 13:14:54 UTC) #8
perezju
https://codereview.chromium.org/2386083003/diff/1/tools/perf/benchmarks/system_health.py File tools/perf/benchmarks/system_health.py (right): https://codereview.chromium.org/2386083003/diff/1/tools/perf/benchmarks/system_health.py#newcode121 tools/perf/benchmarks/system_health.py:121: return 'system_health.memory_%s' % cls.PLATFORM On 2016/10/05 13:14:54, perezju wrote: ...
4 years, 2 months ago (2016-10-05 13:18:11 UTC) #9
hjd
thanks :) https://codereview.chromium.org/2386083003/diff/40001/tools/perf/page_sets/system_health/background_stories.py File tools/perf/page_sets/system_health/background_stories.py (right): https://codereview.chromium.org/2386083003/diff/40001/tools/perf/page_sets/system_health/background_stories.py#newcode18 tools/perf/page_sets/system_health/background_stories.py:18: action_runner.tab.browser.Background() On 2016/10/05 13:14:54, perezju wrote: > ...
4 years, 2 months ago (2016-10-05 13:45:44 UTC) #10
perezju
https://codereview.chromium.org/2386083003/diff/60001/tools/perf/page_sets/system_health/background_stories.py File tools/perf/page_sets/system_health/background_stories.py (right): https://codereview.chromium.org/2386083003/diff/60001/tools/perf/page_sets/system_health/background_stories.py#newcode23 tools/perf/page_sets/system_health/background_stories.py:23: action_runner.Wait(PRE_MEASUREMENT_DELAY_SECONDS) Actually, no, sorry about that. The _Measure method ...
4 years, 2 months ago (2016-10-05 13:55:38 UTC) #11
nednguyen
On 2016/10/05 13:55:38, perezju wrote: > https://codereview.chromium.org/2386083003/diff/60001/tools/perf/page_sets/system_health/background_stories.py > File tools/perf/page_sets/system_health/background_stories.py (right): > > https://codereview.chromium.org/2386083003/diff/60001/tools/perf/page_sets/system_health/background_stories.py#newcode23 > ...
4 years, 2 months ago (2016-10-05 14:07:28 UTC) #12
perezju
On 2016/10/05 14:07:28, nednguyen wrote: > On 2016/10/05 13:55:38, perezju wrote: > > > https://codereview.chromium.org/2386083003/diff/60001/tools/perf/page_sets/system_health/background_stories.py ...
4 years, 2 months ago (2016-10-05 14:15:20 UTC) #13
nednguyen
On 2016/10/05 14:15:20, perezju wrote: > On 2016/10/05 14:07:28, nednguyen wrote: > > On 2016/10/05 ...
4 years, 2 months ago (2016-10-05 14:19:54 UTC) #14
perezju
On 2016/10/05 14:19:54, nednguyen wrote: > On 2016/10/05 14:15:20, perezju wrote: > > On 2016/10/05 ...
4 years, 2 months ago (2016-10-05 14:26:38 UTC) #15
hjd
https://codereview.chromium.org/2386083003/diff/60001/tools/perf/page_sets/system_health/background_stories.py File tools/perf/page_sets/system_health/background_stories.py (right): https://codereview.chromium.org/2386083003/diff/60001/tools/perf/page_sets/system_health/background_stories.py#newcode23 tools/perf/page_sets/system_health/background_stories.py:23: action_runner.Wait(PRE_MEASUREMENT_DELAY_SECONDS) On 2016/10/05 13:55:38, perezju wrote: > Actually, no, ...
4 years, 2 months ago (2016-10-05 15:07:41 UTC) #16
nednguyen
https://codereview.chromium.org/2386083003/diff/100001/tools/perf/page_sets/system_health/background_stories.py File tools/perf/page_sets/system_health/background_stories.py (right): https://codereview.chromium.org/2386083003/diff/100001/tools/perf/page_sets/system_health/background_stories.py#newcode24 tools/perf/page_sets/system_health/background_stories.py:24: URL = 'https://www.google.co.uk/' Can you change this to https://www.google.co.uk/#q=tom+cruise+movies? ...
4 years, 2 months ago (2016-10-05 15:15:23 UTC) #17
hjd
ptal, I changed the BackgroundStory to be a mixin so we could take advantage of ...
4 years, 2 months ago (2016-10-06 11:23:41 UTC) #19
perezju
https://codereview.chromium.org/2386083003/diff/140001/tools/perf/page_sets/system_health/background_stories.py File tools/perf/page_sets/system_health/background_stories.py (right): https://codereview.chromium.org/2386083003/diff/140001/tools/perf/page_sets/system_health/background_stories.py#newcode53 tools/perf/page_sets/system_health/background_stories.py:53: class BackgroundGmailMobileStory(_LoadGmailBaseStory, _BackgroundStoryMixin): I'm not super excited about the ...
4 years, 2 months ago (2016-10-06 12:41:45 UTC) #20
hjd
On 2016/10/06 12:41:45, perezju wrote: > https://codereview.chromium.org/2386083003/diff/140001/tools/perf/page_sets/system_health/background_stories.py > File tools/perf/page_sets/system_health/background_stories.py (right): > > https://codereview.chromium.org/2386083003/diff/140001/tools/perf/page_sets/system_health/background_stories.py#newcode53 > ...
4 years, 2 months ago (2016-10-06 13:00:24 UTC) #21
perezju
I think this is looking good. If Ned is happy, maybe upload recordings now? https://codereview.chromium.org/2386083003/diff/180001/tools/perf/page_sets/system_health/background_stories.py ...
4 years, 2 months ago (2016-10-06 13:32:42 UTC) #22
perezju
I think this is looking good. If Ned is happy, maybe upload recordings now?
4 years, 2 months ago (2016-10-06 13:32:44 UTC) #23
nednguyen
Yeah, we can work on the recording now. If we can enable the video playing ...
4 years, 2 months ago (2016-10-06 13:39:02 UTC) #24
hjd
https://codereview.chromium.org/2386083003/diff/180001/tools/perf/page_sets/system_health/background_stories.py File tools/perf/page_sets/system_health/background_stories.py (right): https://codereview.chromium.org/2386083003/diff/180001/tools/perf/page_sets/system_health/background_stories.py#newcode15 tools/perf/page_sets/system_health/background_stories.py:15: On 2016/10/06 13:32:42, perezju wrote: > nit: remove that ...
4 years, 2 months ago (2016-10-06 15:27:35 UTC) #25
perezju
https://codereview.chromium.org/2386083003/diff/180001/tools/perf/page_sets/system_health/loading_stories.py File tools/perf/page_sets/system_health/loading_stories.py (right): https://codereview.chromium.org/2386083003/diff/180001/tools/perf/page_sets/system_health/loading_stories.py#newcode294 tools/perf/page_sets/system_health/loading_stories.py:294: action_runner.tab.WaitForDocumentReadyStateToBeComplete() On 2016/10/06 15:27:35, hjd wrote: > On 2016/10/06 ...
4 years, 2 months ago (2016-10-06 15:32:54 UTC) #26
nednguyen
https://codereview.chromium.org/2386083003/diff/200001/tools/perf/page_sets/system_health/background_stories.py File tools/perf/page_sets/system_health/background_stories.py (right): https://codereview.chromium.org/2386083003/diff/200001/tools/perf/page_sets/system_health/background_stories.py#newcode56 tools/perf/page_sets/system_health/background_stories.py:56: 'document.querySelector(".nytd-player-poster").scrollIntoView();') Instead of doing this, can you use action_runner.Scroll? ...
4 years, 2 months ago (2016-10-08 14:30:13 UTC) #27
hjd
On 2016/10/08 14:30:13, nednguyen wrote: > https://codereview.chromium.org/2386083003/diff/200001/tools/perf/page_sets/system_health/background_stories.py > File tools/perf/page_sets/system_health/background_stories.py (right): > > https://codereview.chromium.org/2386083003/diff/200001/tools/perf/page_sets/system_health/background_stories.py#newcode56 > ...
4 years, 2 months ago (2016-10-10 11:26:44 UTC) #28
hjd
Okay, I recorded and upload the stories with Python 2.7.6 due to bug (https://github.com/catapult-project/catapult/issues/2920). PTAL, ...
4 years, 2 months ago (2016-10-14 10:30:53 UTC) #29
perezju
On 2016/10/14 10:30:53, hjd wrote: > Okay, I recorded and upload the stories with Python ...
4 years, 2 months ago (2016-10-14 13:08:11 UTC) #30
chromium-reviews
Yep but I put them in gs://chromium-telemetry I guess it looks in gs://chrome-partner-telemetry? I can ...
4 years, 2 months ago (2016-10-14 13:54:58 UTC) #31
perezju
On 2016/10/14 13:54:58, chromium-reviews wrote: > Yep but I put them in gs://chromium-telemetry I guess ...
4 years, 2 months ago (2016-10-14 14:09:27 UTC) #32
nednguyen
https://codereview.chromium.org/2386083003/diff/240001/tools/perf/page_sets/system_health/background_stories.py File tools/perf/page_sets/system_health/background_stories.py (right): https://codereview.chromium.org/2386083003/diff/240001/tools/perf/page_sets/system_health/background_stories.py#newcode50 tools/perf/page_sets/system_health/background_stories.py:50: action_runner.ScrollElement(selector='.nytd-player-poster') Randy has finished his work. You can now ...
4 years, 2 months ago (2016-10-14 22:55:59 UTC) #33
hjd
Thanks :) https://codereview.chromium.org/2386083003/diff/240001/tools/perf/page_sets/system_health/background_stories.py File tools/perf/page_sets/system_health/background_stories.py (right): https://codereview.chromium.org/2386083003/diff/240001/tools/perf/page_sets/system_health/background_stories.py#newcode50 tools/perf/page_sets/system_health/background_stories.py:50: action_runner.ScrollElement(selector='.nytd-player-poster') On 2016/10/14 22:55:58, nednguyen wrote: > ...
4 years, 2 months ago (2016-10-18 11:50:00 UTC) #34
perezju
lgtm, although gsutil is not working for me at the moment, and I can't test ...
4 years, 2 months ago (2016-10-18 14:19:37 UTC) #35
nednguyen
sorry, I am setting up my test phone to run your stories.. Will give extra ...
4 years, 2 months ago (2016-10-18 14:37:26 UTC) #36
nednguyen
When I test this locally with my test phone's Wifi set to off, the pages ...
4 years, 2 months ago (2016-10-18 15:27:29 UTC) #37
nednguyen
Sorry, please ignore my comments about not able to load the page when turning off ...
4 years, 2 months ago (2016-10-18 15:30:21 UTC) #38
hjd
ptal, I think everything should work now! I had to do a bit more tweaking ...
4 years, 2 months ago (2016-10-21 16:17:22 UTC) #39
perezju
On 2016/10/21 16:17:22, hjd wrote: > ptal, I think everything should work now! > I ...
4 years, 1 month ago (2016-10-25 09:31:28 UTC) #40
perezju
On 2016/10/25 09:31:28, perezju wrote: > On 2016/10/21 16:17:22, hjd wrote: > > ptal, I ...
4 years, 1 month ago (2016-10-25 09:33:24 UTC) #41
nednguyen
On 2016/10/25 09:33:24, perezju wrote: > On 2016/10/25 09:31:28, perezju wrote: > > On 2016/10/21 ...
4 years, 1 month ago (2016-10-25 10:06:04 UTC) #42
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/2386083003/300001
4 years, 1 month ago (2016-10-25 10:32:09 UTC) #45
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 1 month ago (2016-10-25 11:24:24 UTC) #47
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 11:28:17 UTC) #49
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/81b7c28dc5a75396861fca85ace8c1420224af6b
Cr-Commit-Position: refs/heads/master@{#427320}

Powered by Google App Engine
This is Rietveld 408576698