Closed
Bug 875556
Opened 11 years ago
Closed 10 years ago
webRTC bandwidth telemetry
Categories
(Core :: WebRTC, defect)
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: bbrittain, Assigned: jib)
References
Details
(Whiteboard: [WebRTC][blocking-webrtc-])
Attachments
(3 files, 5 obsolete files)
2.27 KB,
patch
|
jesup
:
review+
|
Details | Diff | Splinter Review |
11.59 KB,
patch
|
bwc
:
review+
|
Details | Diff | Splinter Review |
8.17 KB,
patch
|
jib
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → ben
Whiteboard: [WebRTC][blocking-webrtc-]
Comment 1•11 years ago
|
||
Reassigning to Jan-Ivar since Ben has gone back to school
Assignee: ben → jib
Target Milestone: --- → mozilla28
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8424354 -
Flags: review?(rjesup)
Assignee | ||
Comment 3•10 years ago
|
||
Prep RTCStatsQuery struct so I can snatch its reports for part 3.
Attachment #8424355 -
Flags: review?(docfaraday)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8424357 -
Flags: review?(rjesup)
Comment 5•10 years ago
|
||
Comment on attachment 8424355 [details] [diff] [review] Part 2: tweak internal RTCStatsQuery for re-use. Review of attachment 8424355 [details] [diff] [review]: ----------------------------------------------------------------- I can't get this patch to apply cleanly, but this looks basically sane. Go ahead and unrot, and I can give it a closer look. ::: media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.h @@ +183,4 @@ > std::string error; > > + protected: > + nsAutoPtr<mozilla::dom::RTCStatsReportInternal> report; Why protected?
Attachment #8424355 -
Flags: review?(docfaraday)
Assignee | ||
Comment 6•10 years ago
|
||
(In reply to Byron Campen [:bwc] from comment #5) > I can't get this patch to apply cleanly, Did you apply them on-top of Bug 970685? > ::: media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.h > @@ +183,4 @@ > > std::string error; > > > > + protected: > > + nsAutoPtr<mozilla::dom::RTCStatsReportInternal> report; > > Why protected? For RTCStatsQueryForTelemetry.TakeReport() in part 3.
Assignee | ||
Comment 7•10 years ago
|
||
Unbitrot.
Attachment #8424355 -
Attachment is obsolete: true
Attachment #8427004 -
Flags: review?(docfaraday)
Updated•10 years ago
|
Attachment #8424354 -
Flags: review?(rjesup) → review+
Comment 8•10 years ago
|
||
Comment on attachment 8424357 [details] [diff] [review] Part 3: telemetry for WebRTC bandwidth, stats-tweak approach. Review of attachment 8424357 [details] [diff] [review]: ----------------------------------------------------------------- ::: media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.cpp @@ +275,5 @@ > + > +static nsTArray<nsAutoPtr<RTCStatsReportInternal>>::index_type > +FindId(const nsTArray<nsAutoPtr<RTCStatsReportInternal>>& aArray, > + const nsString &aId) { > + for (nsTArray<nsAutoPtr<RTCStatsReportInternal>>::index_type i = 0; All I can say is... This c++ stuff is icky @@ +316,1 @@ > auto& s = array[i]; Very cute, this c++11 stuff. Can't wait to see ehsan grep-and-replace on the entire tree...
Attachment #8424357 -
Flags: review?(rjesup) → review+
Assignee | ||
Comment 9•10 years ago
|
||
(In reply to Randell Jesup [:jesup] from comment #8) > > +static nsTArray<nsAutoPtr<RTCStatsReportInternal>>::index_type > > +FindId(const nsTArray<nsAutoPtr<RTCStatsReportInternal>>& aArray, > > + const nsString &aId) { > > + for (nsTArray<nsAutoPtr<RTCStatsReportInternal>>::index_type i = 0; > > All I can say is... This c++ stuff is icky Hopefully less icky. YMMV.
Attachment #8424357 -
Attachment is obsolete: true
Attachment #8427493 -
Flags: review?(rjesup)
Updated•10 years ago
|
Attachment #8427493 -
Flags: review?(rjesup) → review+
Assignee | ||
Comment 10•10 years ago
|
||
Forgot MOZILLA_INTERNAL_API - Carrying forward r=jesup.
Attachment #8427493 -
Attachment is obsolete: true
Attachment #8427720 -
Flags: review+
Assignee | ||
Comment 11•10 years ago
|
||
Try - https://tbpl.mozilla.org/?tree=Try&rev=92f6458daf2c
Comment 12•10 years ago
|
||
Comment on attachment 8427004 [details] [diff] [review] Part 2: tweak internal RTCStatsQuery for re-use (2) Review of attachment 8427004 [details] [diff] [review]: ----------------------------------------------------------------- This looks functional, by why not just put TakeReport in RTCStatsQuery (or maybe even just make it an nsAutoPtr that is public)? This would actually be useful for storing the final stats reports (see http://dxr.mozilla.org/mozilla-central/source/media/webrtc/signaling/src/peerconnection/PeerConnectionCtx.h#87 ).
Assignee | ||
Comment 13•10 years ago
|
||
Simpler tweak that exposes report as nsAutoPtr, as suggested.
Attachment #8427004 -
Attachment is obsolete: true
Attachment #8427004 -
Flags: review?(docfaraday)
Attachment #8429386 -
Flags: review?(docfaraday)
Comment 14•10 years ago
|
||
Comment on attachment 8429386 [details] [diff] [review] Part 2: tweak internal RTCStatsQuery to use nsAutoPtr for report, so it can be stolen Review of attachment 8429386 [details] [diff] [review]: ----------------------------------------------------------------- lgtm
Attachment #8429386 -
Flags: review?(docfaraday) → review+
Assignee | ||
Comment 15•10 years ago
|
||
Rebased ontop of Part 2, which means some rote changes, but nothing substantive so I've carried forward r=jesup.
Attachment #8427720 -
Attachment is obsolete: true
Attachment #8429455 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Updated•10 years ago
|
Target Milestone: mozilla28 → ---
Assignee | ||
Comment 17•10 years ago
|
||
Patches appear to have landed already (wrong bug # in two of them, sorry): http://hg.mozilla.org/mozilla-central/rev/7790127900af http://hg.mozilla.org/mozilla-central/rev/78f0a65aac79 http://hg.mozilla.org/mozilla-central/rev/8267531afaad
Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Assignee | ||
Comment 18•10 years ago
|
||
See Bug 970685 comment 18.
You need to log in
before you can comment on or make changes to this bug.
Description
•