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

Issue 16854013: Telemetry media_measurement plus play action and tests. (Closed)

Created:
7 years, 6 months ago by shadi
Modified:
7 years, 5 months ago
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Visibility:
Public.

Description

Telemetry media_measurement plus play action and tests. The media_measurement reports common HTML5 media stats for every <video> and <audio> element on the page by default. The play action provides options like selecting certain media elements to play, and 'wait_for_playing' and 'wait_for_ended' to wait for media events that will automatically append 'ttp' (time_to_play) and 'playback_time' metrics as they happen. BUG=249435 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211720

Patch Set 1 #

Total comments: 31

Patch Set 2 : #

Patch Set 3 : removed un-needed file #

Total comments: 19

Patch Set 4 : Split measurement JS from action JS. Wrap JS access in Py class. Add more unit tests. #

Total comments: 43

Patch Set 5 : Create media base and subclass and other nits. #

Patch Set 6 : Add expected metrics to python. clean up some code. #

Patch Set 7 : remove unneeded deps check in play.py #

Patch Set 8 : remove media files (submitted separately) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+518 lines, -0 lines) Patch
A tools/perf/page_sets/tough_video_cases.json View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
A tools/perf/page_sets/tough_video_cases/video.html View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
A tools/perf/perf_tools/media_measurement.py View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A tools/perf/perf_tools/media_metrics.js View 1 2 3 4 5 1 chunk +152 lines, -0 lines 0 comments Download
A tools/perf/perf_tools/media_metrics.py View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/page/actions/play.js View 1 2 3 1 chunk +76 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/page/actions/play.py View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/page/actions/play_unittest.py View 1 2 3 1 chunk +112 lines, -0 lines 0 comments Download
A tools/telemetry/unittest_data/video_test.html View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
shadi
Telemetry and video stack guys, PTAL. Note: The tools/perf/page_sets/video_stack/* files serve as a test scenario ...
7 years, 6 months ago (2013-06-13 18:59:02 UTC) #1
scherkus (not reviewing)
FYI I'm not a JS/Python pro https://codereview.chromium.org/16854013/diff/1/tools/perf/page_sets/video_stack.json File tools/perf/page_sets/video_stack.json (right): https://codereview.chromium.org/16854013/diff/1/tools/perf/page_sets/video_stack.json#newcode4 tools/perf/page_sets/video_stack.json:4: { "url": "http://shawarma.kir/alcatraz/eme_fps.html" ...
7 years, 6 months ago (2013-06-14 20:50:44 UTC) #2
shadi
Thanks scherkus@. telemetry guys, can you PTAL? https://codereview.chromium.org/16854013/diff/1/tools/perf/page_sets/video_stack.json File tools/perf/page_sets/video_stack.json (right): https://codereview.chromium.org/16854013/diff/1/tools/perf/page_sets/video_stack.json#newcode4 tools/perf/page_sets/video_stack.json:4: { "url": ...
7 years, 6 months ago (2013-06-17 19:13:59 UTC) #3
nduca
shadi, this looks really solid. awesomely done. some initial feedback. https://codereview.chromium.org/16854013/diff/15001/tools/perf/page_sets/video_stack/utils.js File tools/perf/page_sets/video_stack/utils.js (left): https://codereview.chromium.org/16854013/diff/15001/tools/perf/page_sets/video_stack/utils.js#oldcode3 ...
7 years, 6 months ago (2013-06-17 23:01:33 UTC) #4
shadi
Thanks nduca@ I am working on updating the CL but meanwhile I want to discuss ...
7 years, 6 months ago (2013-06-18 00:30:01 UTC) #5
nduca
> Why did you guys go with tough_*_cases naming? Page sets don't have to be ...
7 years, 6 months ago (2013-06-18 01:10:24 UTC) #6
shadi
> Why did you guys go with tough_*_cases naming? Page sets don't have to be ...
7 years, 6 months ago (2013-06-18 18:16:20 UTC) #7
nduca
If you want to chat on im/etc i'm fine with it. Maybe your play action ...
7 years, 6 months ago (2013-06-18 18:19:33 UTC) #8
nduca
just some comments https://codereview.chromium.org/16854013/diff/15001/tools/perf/perf_tools/media_metrics.js File tools/perf/perf_tools/media_metrics.js (right): https://codereview.chromium.org/16854013/diff/15001/tools/perf/perf_tools/media_metrics.js#newcode193 tools/perf/perf_tools/media_metrics.js:193: var recorders = findMediaRecorders(selector); this should ...
7 years, 6 months ago (2013-06-19 18:12:03 UTC) #9
nduca
I just realized, we also need to make sure that the video gets played during ...
7 years, 6 months ago (2013-06-20 17:40:10 UTC) #10
shadi
Thanks for the comments, online and offline. I believe I addressed all the issues. PTAL. ...
7 years, 6 months ago (2013-06-21 00:39:51 UTC) #11
shadi
Ping. nduca@ can you PTAL?
7 years, 6 months ago (2013-06-25 17:12:21 UTC) #12
shadi
Ping. Can you PTAL?
7 years, 5 months ago (2013-07-09 22:43:49 UTC) #13
nduca
getting really close, sorry one more round of feedback. my apologies about the delay https://codereview.chromium.org/16854013/diff/37001/tools/perf/page_sets/tough_video_cases/utils.js ...
7 years, 5 months ago (2013-07-09 23:07:18 UTC) #14
shadi
Thanks for review. PTAL with questions inlined. https://codereview.chromium.org/16854013/diff/37001/tools/perf/page_sets/tough_video_cases/utils.js File tools/perf/page_sets/tough_video_cases/utils.js (left): https://codereview.chromium.org/16854013/diff/37001/tools/perf/page_sets/tough_video_cases/utils.js#oldcode9 tools/perf/page_sets/tough_video_cases/utils.js:9: var QueryString ...
7 years, 5 months ago (2013-07-11 00:49:13 UTC) #15
nduca
> > file plays bear.webm > types, it made sense to pass the media file ...
7 years, 5 months ago (2013-07-11 01:14:14 UTC) #16
shadi
PTAL
7 years, 5 months ago (2013-07-11 20:42:46 UTC) #17
nduca
You're gonna hate me for saying this but ... lgtm Nicely done.
7 years, 5 months ago (2013-07-12 22:27:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shadi@chromium.org/16854013/66001
7 years, 5 months ago (2013-07-15 21:30:11 UTC) #19
commit-bot: I haz the power
Can't process patch for file tools/telemetry/unittest_data/bear.webm. Binary file support is temporarilly disabled due to a ...
7 years, 5 months ago (2013-07-15 21:30:14 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shadi@chromium.org/16854013/81001
7 years, 5 months ago (2013-07-15 22:18:52 UTC) #21
commit-bot: I haz the power
7 years, 5 months ago (2013-07-15 22:19:17 UTC) #22
Message was sent while issue was closed.
Change committed as 211720

Powered by Google App Engine
This is Rietveld 408576698