Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Issue 2242043002: RTCStatsCollector and RTCPeerConnectionStats added (Closed)

Created:
4 years, 4 months ago by hbos
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

RTCStatsCollector and RTCPeerConnectionStats added. This is the stats collector for the new stats types, RTCStats[1] and RTCStatsReport[2]. It so far only produces RTCPeerConnectionStats[3] as an example of how it would collect stats. Each RTCStats subclass will get a corresponding RTCStatsCollector::ProduceFooStats(). Stats reports are cached and returned as const references (ref counting). This allows stats to be inspected by multiple observers and across multiple threads. No copies will have to be made when surfacing this to Blink or other places. The current implementation of ProducePeerConnectionStats() only look at existing DataChannels. This might be incorret if data channels can be removed? Will investigate in a follow-up, crbug.com/636818. [1] https://www.w3.org/TR/2016/WD-webrtc-20160531/#idl-def-rtcstats [2] https://www.w3.org/TR/2016/WD-webrtc-20160531/#rtcstatsreport-object [3] https://w3c.github.io/webrtc-stats/archives/20160526/webrtc-stats.html#pcstats-dict* BUG=chromium:627816, chromium:636818 Committed: https://crrev.com/d565b73121b1b7672fb7d1f115bbbbb137a838eb Cr-Commit-Position: refs/heads/master@{#13979}

Patch Set 1 #

Patch Set 2 : Changed ID of RTCPeerConnectionStats to "RTCPeerConnection" (no need to rerun bots yet) #

Total comments: 16

Patch Set 3 : Addressed comments #

Patch Set 4 : Making sure the RTCPeerConnectionStats has the correct timestamp #

Total comments: 14

Patch Set 5 : Addressed comments #

Patch Set 6 : Rebase with master and fix compile error #

Patch Set 7 : Rebase with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -6 lines) Patch
M webrtc/api/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/api/api.gyp View 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/api_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A webrtc/api/rtcstats_objects.h View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
A webrtc/api/test/mock_datachannel.h View 1 chunk +31 lines, -0 lines 0 comments Download
M webrtc/stats/BUILD.gn View 1 2 3 4 5 6 3 chunks +14 lines, -6 lines 0 comments Download
M webrtc/stats/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A webrtc/stats/rtcstats_objects.cc View 1 chunk +29 lines, -0 lines 0 comments Download
A webrtc/stats/rtcstatscollector.h View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A webrtc/stats/rtcstatscollector.cc View 1 2 3 4 1 chunk +81 lines, -0 lines 0 comments Download
A webrtc/stats/rtcstatscollector_unittest.cc View 1 2 3 4 5 6 1 chunk +152 lines, -0 lines 0 comments Download
M webrtc/stats/stats.gyp View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (17 generated)
hbos
Please take a look hta and magjed. hta: everything magjed: webrtc/stats/DEPS stamping I'll add a ...
4 years, 3 months ago (2016-08-24 10:33:39 UTC) #13
hta-webrtc
Every time I see a double representing time, I would prefer it to be in ...
4 years, 3 months ago (2016-08-24 13:02:16 UTC) #14
hbos
Please take (another) look hta, glaznev, magjed. https://codereview.webrtc.org/2242043002/diff/120001/webrtc/stats/rtcstatscollector.cc File webrtc/stats/rtcstatscollector.cc (right): https://codereview.webrtc.org/2242043002/diff/120001/webrtc/stats/rtcstatscollector.cc#newcode37 webrtc/stats/rtcstatscollector.cc:37: double now ...
4 years, 3 months ago (2016-08-24 14:28:00 UTC) #16
magjed_webrtc
I have looked at the DEPS part. Can you clarify why stats need to depend ...
4 years, 3 months ago (2016-08-25 09:07:52 UTC) #17
hta-webrtc
lgtm https://codereview.webrtc.org/2242043002/diff/160001/webrtc/stats/rtcstatscollector.h File webrtc/stats/rtcstatscollector.h (right): https://codereview.webrtc.org/2242043002/diff/160001/webrtc/stats/rtcstatscollector.h#newcode45 webrtc/stats/rtcstatscollector.h:45: bool IsSignalingThread() const; Naming nit: This isn't a ...
4 years, 3 months ago (2016-08-26 09:28:57 UTC) #18
hta-webrtc
lgtm lgtm https://codereview.webrtc.org/2242043002/diff/160001/webrtc/stats/rtcstatscollector.h File webrtc/stats/rtcstatscollector.h (right): https://codereview.webrtc.org/2242043002/diff/160001/webrtc/stats/rtcstatscollector.h#newcode45 webrtc/stats/rtcstatscollector.h:45: bool IsSignalingThread() const; Naming nit: This isn't ...
4 years, 3 months ago (2016-08-26 09:28:57 UTC) #19
hta-webrtc
lgtm lgtm lgtm
4 years, 3 months ago (2016-08-26 09:28:57 UTC) #20
hta-webrtc
lgtm
4 years, 3 months ago (2016-08-26 09:29:16 UTC) #21
hta-webrtc
lgtm I meant to say "lgtm once magjed's comments are addressed".
4 years, 3 months ago (2016-08-26 09:29:56 UTC) #22
hbos
Please take (another) look glaznev and magjed. On 2016/08/25 09:07:52, magjed_webrtc wrote: > I have ...
4 years, 3 months ago (2016-08-29 13:10:59 UTC) #23
magjed_webrtc
On 2016/08/29 13:10:59, hbos wrote: > Please take (another) look glaznev and magjed. > > ...
4 years, 3 months ago (2016-08-30 08:21:42 UTC) #24
hbos
Please take a look, glaznev.
4 years, 3 months ago (2016-08-30 08:31:45 UTC) #25
AlexG
lgtm
4 years, 3 months ago (2016-08-30 17:05:57 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2242043002/220001
4 years, 3 months ago (2016-08-30 20:48:59 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:220001)
4 years, 3 months ago (2016-08-30 21:04:40 UTC) #31
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 21:04:52 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d565b73121b1b7672fb7d1f115bbbbb137a838eb
Cr-Commit-Position: refs/heads/master@{#13979}

Powered by Google App Engine
This is Rietveld 408576698