Closed
Bug 1196965
Opened 9 years ago
Closed 9 years ago
Record memory used by MSE samples
Categories
(Core :: Audio/Video: Playback, defect, P2)
Tracking
()
RESOLVED
DUPLICATE
of bug 1190592
People
(Reporter: mattwoodrow, Assigned: mattwoodrow)
References
Details
(Whiteboard: [MemShrink])
Attachments
(1 file)
(deleted),
patch
|
jya
:
review-
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8650724 -
Flags: review?(jyavenard)
Comment 2•9 years ago
|
||
Comment on attachment 8650724 [details] [diff] [review]
mse-memory-reporter
this is almost the same as bug 1190592, and like it, this isn't thread-safe.
But unlike bug 1190592, we don't have the same requirements to use MallocSizeOf.
You don't need TrackBuffersManagers::SizeOfResources() there's already a member with the cummulative size of all samples:
TrackData::mSizeBuffer
Check the MediaSourceDemuxer::GetMozDebugReaderData you need mVideoTrack->mVideoTracks.mSizeBuffer and mAudioTrack->mAudioTracks.mSizeBuffer
mSizeBuffer will have to be made atomic.
Attachment #8650724 -
Flags: review?(jyavenard) → review-
Updated•9 years ago
|
Priority: -- → P2
Comment 3•9 years ago
|
||
Seems like we should just combine efforts here rather than have two separate mechanisms. Reporting via MediaMemoryTracker::CollectReports rather than nsWindowMemoryReporter is *much* preferred.
With bug 1194555 we will be able to have asynchronous reporters which means we'll be able to measure off main thread. I can put together of proof of concept to show how it could work.
Assignee | ||
Comment 4•9 years ago
|
||
(In reply to Eric Rahm [:erahm] from comment #3)
> Seems like we should just combine efforts here rather than have two separate
> mechanisms. Reporting via MediaMemoryTracker::CollectReports rather than
> nsWindowMemoryReporter is *much* preferred.
>
> With bug 1194555 we will be able to have asynchronous reporters which means
> we'll be able to measure off main thread. I can put together of proof of
> concept to show how it could work.
Yeah, I agree. I hadn't seen the other bug, and I'm happy to go with that one instead.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Comment 5•9 years ago
|
||
(In reply to Matt Woodrow (:mattwoodrow) from comment #4)
> (In reply to Eric Rahm [:erahm] from comment #3)
> > Seems like we should just combine efforts here rather than have two separate
> > mechanisms. Reporting via MediaMemoryTracker::CollectReports rather than
> > nsWindowMemoryReporter is *much* preferred.
> >
> > With bug 1194555 we will be able to have asynchronous reporters which means
> > we'll be able to measure off main thread. I can put together of proof of
> > concept to show how it could work.
>
> Yeah, I agree. I hadn't seen the other bug, and I'm happy to go with that
> one instead.
>
> *** This bug has been marked as a duplicate of bug 1190592 ***
I'll probably use your version as it's easier to implement, but we can do the work in the other bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•