Closed
Bug 1238433
Opened 8 years ago
Closed 8 years ago
Add telemetry to report proportion of frame drops during video playback
Categories
(Core :: Audio/Video: Playback, defect, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: cpearce, Assigned: lchristie)
Details
Attachments
(1 file, 3 obsolete files)
3.48 KB,
patch
|
Details | Diff | Splinter Review |
We should add telemetry to report the proportion of frames that are dropped during playback of video. Then we can observe this fluctuating over time to figure out if we're improving performance. I suggest that we do this in the same place that we report the MSE telemetry. We already have the playback quality statistics returned by HTMLVideoElement::GetVideoPlaybackQuality(), it's just a matter of determining whether our media element is playing a video, and if so getting a video element pointer and calling its GetVideoPlaybackQuality function and reporting the results. You can convert from an HTMLMediaElement to an HTMLVideoElement by calling HTMLVideoElement::FromContentOrNull(this) from inside an HTMLMediaElement function I believe, for example (but not from inside HTMLMediaElement): http://mxr.mozilla.org/mozilla-central/source/layout/base/nsLayoutUtils.cpp#7192
Updated•8 years ago
|
Priority: -- → P2
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8718196 -
Flags: review?(cpearce)
Attachment #8718196 -
Flags: feedback?(benjamin)
Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8718196 -
Attachment is obsolete: true
Attachment #8718196 -
Flags: review?(cpearce)
Attachment #8718196 -
Flags: feedback?(benjamin)
Attachment #8718198 -
Flags: review?(cpearce)
Attachment #8718198 -
Flags: feedback?(benjamin)
Reporter | ||
Comment 3•8 years ago
|
||
Comment on attachment 8718198 [details] [diff] [review] bug-1238433-fix.patch Review of attachment 8718198 [details] [diff] [review]: ----------------------------------------------------------------- I think this is a good start. We'll want more precise telemetry which reports frame drops for different resolutions and formats and values of hardware accelerated video decoding. But this is a good aggregate to start. ::: toolkit/components/telemetry/Histograms.json @@ +10167,5 @@ > + "alert_emails": ["lchristie@mozilla.com", "cpearce@mozilla.com"], > + "expires_in_version": "55", > + "kind": "linear", > + "high": "100", > + "n_buckets": 20, I think you need "n_buckets": "101", as we want higher precision than just 5% increments, and in order to record both values 0 and 100% you need to include the range [0,1...100], i.e. 101 values.
Attachment #8718198 -
Flags: review?(cpearce) → review+
Assignee | ||
Comment 4•8 years ago
|
||
Amended with cpearce's comments
Attachment #8718198 -
Attachment is obsolete: true
Attachment #8718198 -
Flags: feedback?(benjamin)
Attachment #8718512 -
Flags: feedback?(benjamin)
Comment 5•8 years ago
|
||
Comment on attachment 8718512 [details] [diff] [review] bug-1238433-fix.patch Seems pretty straightforward. You'll probably want correlates in another iteration (video size/frame rate in particular), but good to start with the simple thing.
Attachment #8718512 -
Flags: feedback?(benjamin) → feedback+
Assignee | ||
Comment 6•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=936611ecc231
Assignee | ||
Comment 7•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=a1b2e693c7b3
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 9•8 years ago
|
||
backed out for bustage like https://treeherder.mozilla.org/logviewer.html#?job_id=21908898&repo=mozilla-inbound
Flags: needinfo?(lchristie)
Assignee | ||
Comment 10•8 years ago
|
||
Whoops, didn't upload the version in the last try push.
Flags: needinfo?(lchristie)
Assignee | ||
Comment 11•8 years ago
|
||
Attachment #8718512 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 12•8 years ago
|
||
Backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/f5a6fa884f9f
Keywords: checkin-needed
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 13•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/cc4950c828a1
Keywords: checkin-needed
Assignee | ||
Comment 14•8 years ago
|
||
Will follow up with more detailed telemetry in bug 1249706
Comment 15•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cc4950c828a1
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment 16•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/af6356a3e8c5
You need to log in
before you can comment on or make changes to this bug.
Description
•