Closed
Bug 1371205
Opened 7 years ago
Closed 7 years ago
Add telemetry about MediaCacheStream initial notified lengths (from HTTP header)
Categories
(Core :: Audio/Video: Playback, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: mozbugz, Assigned: mozbugz)
References
Details
Attachments
(1 file)
An upcoming bug will aim to keep small-enough media resources completely in memory, bypassing the shared MediaCache. We will need to decide on a default "small-enough" threshold. We already know from MEDIACACHESTREAM_LENGTH_KB (bug 1369538) that 94% of all MediaCacheStreams only use 16MB or less, but the probe is not very precise and we only have two buckets covering 16MB. The new probe will capture the initial length notification only (from the HTTP header), as that is what we will use in the upcoming feature, up to 16MB. This should give us a good spread of numbers (64 buckets of 256KB), to select the best default. -- Caching more in memory would probably be too greedy for now!
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8875639 [details] Bug 1371205 - MEDIACACHESTREAM_NOTIFIED_LENGTH captures the HTTP header length given to MediaCacheStream - https://reviewboard.mozilla.org/r/147064/#review151200 ::: dom/media/MediaCache.cpp:1766 (Diff revision 1) > void > MediaCacheStream::NotifyDataLength(int64_t aLength) > { > NS_ASSERTION(NS_IsMainThread(), "Only call on main thread"); > > + if (mStreamLength < 0 && aLength >= 0) { Why checking |mStreamLength < 0|?
Assignee | ||
Comment 3•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8875639 [details] Bug 1371205 - MEDIACACHESTREAM_NOTIFIED_LENGTH captures the HTTP header length given to MediaCacheStream - https://reviewboard.mozilla.org/r/147064/#review151200 > Why checking |mStreamLength < 0|? I want to capture the very first notification, before mStreamLength could have been set by another notification, or by actual data arriving.
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8875639 [details] Bug 1371205 - MEDIACACHESTREAM_NOTIFIED_LENGTH captures the HTTP header length given to MediaCacheStream - https://reviewboard.mozilla.org/r/147064/#review151402 datareview+
Attachment #8875639 -
Flags: review?(francois) → review+
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8875639 [details] Bug 1371205 - MEDIACACHESTREAM_NOTIFIED_LENGTH captures the HTTP header length given to MediaCacheStream - https://reviewboard.mozilla.org/r/147064/#review152180
Attachment #8875639 -
Flags: review?(cpearce) → review+
Pushed by gsquelart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/acacb9c914f1 MEDIACACHESTREAM_NOTIFIED_LENGTH captures the HTTP header length given to MediaCacheStream - r=cpearce,francois
Comment 7•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/acacb9c914f1
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•