Closed Bug 875556 Opened 11 years ago Closed 10 years ago

webRTC bandwidth telemetry

Categories

(Core :: WebRTC, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: bbrittain, Assigned: jib)

References

Details

(Whiteboard: [WebRTC][blocking-webrtc-])

Attachments

(3 files, 5 obsolete files)

      No description provided.
Blocks: 868626
Assignee: nobody → ben
Whiteboard: [WebRTC][blocking-webrtc-]
Reassigning to Jan-Ivar since Ben has gone back to school
Assignee: ben → jib
Target Milestone: --- → mozilla28
Prep RTCStatsQuery struct so I can snatch its reports for part 3.
Attachment #8424355 - Flags: review?(docfaraday)
Depends on: 970685
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)
(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.
Unbitrot.
Attachment #8424355 - Attachment is obsolete: true
Attachment #8427004 - Flags: review?(docfaraday)
Attachment #8424354 - Flags: review?(rjesup) → review+
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+
(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)
Attachment #8427493 - Flags: review?(rjesup) → review+
Forgot MOZILLA_INTERNAL_API - Carrying forward r=jesup.
Attachment #8427493 - Attachment is obsolete: true
Attachment #8427720 - Flags: review+
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 ).
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 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+
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+
Target Milestone: mozilla28 → ---
These patches are bitrotted. Please rebase.
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: