Open Bug 1366975 Opened 7 years ago Updated 2 years ago

Expose the MediaCache statistics to DevTools Media

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: bechen, Unassigned)

Details

Attachments

(5 files)

The idea comes from JW says: our MediaCache download the same data and drop it again and again due to the MediaCache readahead and drop mechanism.

So I think we can record the operations about the MediaCache then output to about:media page.

We might need a new class for recording.
class MediaCacheRecorder {
  nsTArray<MediaCacheOperation> array;
}

class MediaCacheOperation {
  ResourceID // unique id to identify the download source
  time // timestamp
  action // read/write/drop
  actionByteRange
}

Then we can render a timeline graph to the about:media page.
about:media is dead. Long live DevTools Media Panel https://addons.mozilla.org/en-US/firefox/addon/devtools-media-panel/
Priority: -- → P3
Comment on attachment 8877102 [details]
Bug 1366975 - MediaCacheStatus webidl.

https://reviewboard.mozilla.org/r/148434/#review152882

It is a simple code to access how many blocks store in the MediaCache.
Summary: Expose the MediaCache statistics to about:media. → Expose the MediaCache statistics to DevTools Media
FYI, I'm working on bug 1371882, which will introduce multiple instances of MediaCache.
But looking at your patches, I think we won't have troubles working together, as you're counting cached blocks from each resource, it should work fine! (Maybe just a bit of merge pain for whoever lands second!) :-)
Assignee: nobody → bechen

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: bechen → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: