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

Issue 1843063004: Add new Telemetry tests to get CPU and memory usage for idle and flinging two test scenarios. Mirro… (Closed)

Created:
4 years, 8 months ago by Lei Lei
Modified:
4 years, 8 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, media-router+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add new Telemetry tests to get CPU and memory usage for idle and flinging two test scenarios. Mirroring case will be added later. It uses Chrome extension APIs to get CPU/memory usage for tab, browser, gpu and media router extension four processes. The test extension in this cl is implemented for this purpose. It collects the CPU/memory usage and posts it back the current tab. We will get CPU/memory data each time when the Task Manager updates its process statistics, and will miss some data if media router extension is suspended.Right now I just use a simple way to present the results, which uses the average CPU/memory usage, but I feel this may not be the best way to present the results, since we have lots of 0 in extension CPU usage, it will definitely lower the average value. I need to figure out a better way to present the final results. BUG=594225 Committed: https://crrev.com/50154e04711d8fac820f4f2c08519180c1f585bb Cr-Commit-Position: refs/heads/master@{#388393}

Patch Set 1 #

Patch Set 2 : Update build files #

Patch Set 3 : Minor update for the function docs #

Total comments: 20

Patch Set 4 : Addressed Mark's comments #

Patch Set 5 : Removed unused code #

Total comments: 18

Patch Set 6 : Addressed Mark's comments #

Patch Set 7 : Small change in media_router_cpu_memory_metric.py #

Patch Set 8 : Small change in media_router_cpu_memory_metric.py and revert the console.log to the original versio… #

Total comments: 2

Patch Set 9 : Addressed Jennifer's comments #

Total comments: 12

Patch Set 10 : Addressed Mark's comments #

Patch Set 11 : Fix GN build failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+579 lines, -193 lines) Patch
M chrome/test/media_router/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -2 lines 0 comments Download
M chrome/test/media_router/e2e_tests.gyp View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/media_router/media_router_perf_tests.isolate View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/media_router/media_router_tests.gypi View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/test/media_router/telemetry/benchmarks/media_router_benchmark.py View 1 2 3 4 5 6 7 8 9 3 chunks +35 lines, -12 lines 0 comments Download
A chrome/test/media_router/telemetry/benchmarks/media_router_cpu_memory_metric.py View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download
A + chrome/test/media_router/telemetry/benchmarks/media_router_dialog_metric.py View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/media_router/telemetry/benchmarks/media_router_measurements.py View 1 1 chunk +19 lines, -7 lines 0 comments Download
D chrome/test/media_router/telemetry/benchmarks/media_router_metric.py View 1 chunk +0 lines, -71 lines 0 comments Download
M chrome/test/media_router/telemetry/benchmarks/pagesets/basic_test.html View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M chrome/test/media_router/telemetry/benchmarks/pagesets/common.js View 1 2 3 4 5 6 7 8 9 1 chunk +73 lines, -54 lines 0 comments Download
A chrome/test/media_router/telemetry/benchmarks/pagesets/cpu_memory_script.js View 1 2 3 4 5 6 7 8 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_page.py View 1 1 chunk +66 lines, -0 lines 0 comments Download
D chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_pages.py View 1 chunk +0 lines, -43 lines 0 comments Download
A chrome/test/media_router/telemetry/benchmarks/pagesets/media_router_perf_pages.py View 1 2 3 4 5 6 7 8 9 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/test/media_router/telemetry/extension/README.md View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/media_router/telemetry/extension/manifest.json View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/test/media_router/telemetry/extension/script.js View 1 2 3 4 5 1 chunk +69 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (9 generated)
Lei Lei
4 years, 8 months ago (2016-03-31 18:36:41 UTC) #2
mark a. foltz
Mostly minor comments. It will be important to discard data points when the event page ...
4 years, 8 months ago (2016-04-04 20:25:07 UTC) #3
Lei Lei
If MR extension is suspended, we will not get cpu/memory usage from task manager, since ...
4 years, 8 months ago (2016-04-13 00:22:43 UTC) #4
Lei Lei
+brettw for .gn file review.
4 years, 8 months ago (2016-04-13 00:25:27 UTC) #6
mark a. foltz
https://codereview.chromium.org/1843063004/diff/80001/chrome/test/media_router/telemetry/benchmarks/media_router_cpu_memory_metric.py File chrome/test/media_router/telemetry/benchmarks/media_router_cpu_memory_metric.py (right): https://codereview.chromium.org/1843063004/diff/80001/chrome/test/media_router/telemetry/benchmarks/media_router_cpu_memory_metric.py#newcode15 chrome/test/media_router/telemetry/benchmarks/media_router_cpu_memory_metric.py:15: 'cpu': ''} Can you define units for CPU? Is ...
4 years, 8 months ago (2016-04-13 20:20:03 UTC) #7
mark a. foltz
It sounds like the CPU and memory measurements should work out as long as the ...
4 years, 8 months ago (2016-04-13 20:21:12 UTC) #8
Lei Lei
PTAL. https://codereview.chromium.org/1843063004/diff/80001/chrome/test/media_router/telemetry/benchmarks/media_router_cpu_memory_metric.py File chrome/test/media_router/telemetry/benchmarks/media_router_cpu_memory_metric.py (right): https://codereview.chromium.org/1843063004/diff/80001/chrome/test/media_router/telemetry/benchmarks/media_router_cpu_memory_metric.py#newcode15 chrome/test/media_router/telemetry/benchmarks/media_router_cpu_memory_metric.py:15: 'cpu': ''} On 2016/04/13 20:20:03, mark a. foltz ...
4 years, 8 months ago (2016-04-14 01:55:13 UTC) #9
apacible
lgtm https://codereview.chromium.org/1843063004/diff/140001/chrome/test/media_router/telemetry/benchmarks/pagesets/cpu_memory_script.js File chrome/test/media_router/telemetry/benchmarks/pagesets/cpu_memory_script.js (right): https://codereview.chromium.org/1843063004/diff/140001/chrome/test/media_router/telemetry/benchmarks/pagesets/cpu_memory_script.js#newcode45 chrome/test/media_router/telemetry/benchmarks/pagesets/cpu_memory_script.js:45: return; nit: return not needed
4 years, 8 months ago (2016-04-14 17:35:20 UTC) #10
Lei Lei
https://codereview.chromium.org/1843063004/diff/140001/chrome/test/media_router/telemetry/benchmarks/pagesets/cpu_memory_script.js File chrome/test/media_router/telemetry/benchmarks/pagesets/cpu_memory_script.js (right): https://codereview.chromium.org/1843063004/diff/140001/chrome/test/media_router/telemetry/benchmarks/pagesets/cpu_memory_script.js#newcode45 chrome/test/media_router/telemetry/benchmarks/pagesets/cpu_memory_script.js:45: return; On 2016/04/14 17:35:20, apacible wrote: > nit: return ...
4 years, 8 months ago (2016-04-14 20:05:46 UTC) #11
Lei Lei
Friendly ping.
4 years, 8 months ago (2016-04-18 18:15:03 UTC) #12
brettw
https://codereview.chromium.org/1843063004/diff/160001/chrome/test/media_router/BUILD.gn File chrome/test/media_router/BUILD.gn (right): https://codereview.chromium.org/1843063004/diff/160001/chrome/test/media_router/BUILD.gn#newcode5 chrome/test/media_router/BUILD.gn:5: gypi_values = exec_script("//build/gypi_to_gn.py", I think it's better to copy ...
4 years, 8 months ago (2016-04-18 23:08:25 UTC) #13
mark a. foltz
LGTM with minor comments. brettw@: I asked leilei@ to consolidate the .gn/.gyp file list. Is ...
4 years, 8 months ago (2016-04-18 23:48:11 UTC) #14
brettw
On 2016/04/18 23:48:11, mark a. foltz wrote: > LGTM with minor comments. > > brettw@: ...
4 years, 8 months ago (2016-04-19 19:32:18 UTC) #15
brettw
On 2016/04/19 19:32:18, brettw wrote: > On 2016/04/18 23:48:11, mark a. foltz wrote: > > ...
4 years, 8 months ago (2016-04-19 20:21:00 UTC) #16
Lei Lei
https://codereview.chromium.org/1843063004/diff/160001/chrome/test/media_router/BUILD.gn File chrome/test/media_router/BUILD.gn (right): https://codereview.chromium.org/1843063004/diff/160001/chrome/test/media_router/BUILD.gn#newcode5 chrome/test/media_router/BUILD.gn:5: gypi_values = exec_script("//build/gypi_to_gn.py", On 2016/04/18 23:08:25, brettw wrote: > ...
4 years, 8 months ago (2016-04-19 21:56:02 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843063004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843063004/180001
4 years, 8 months ago (2016-04-19 21:57:47 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/161512)
4 years, 8 months ago (2016-04-19 22:19:33 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843063004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843063004/200001
4 years, 8 months ago (2016-04-19 23:47:14 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-20 01:02:38 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843063004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843063004/200001
4 years, 8 months ago (2016-04-20 01:09:16 UTC) #28
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 8 months ago (2016-04-20 01:14:54 UTC) #29
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:19:35 UTC) #31
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/50154e04711d8fac820f4f2c08519180c1f585bb
Cr-Commit-Position: refs/heads/master@{#388393}

Powered by Google App Engine
This is Rietveld 408576698