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

Issue 2331373004: PeerConnection[Interface]::GetStats(RTCStatsCollectorCallback*) added. (Closed)

Created:
4 years, 3 months ago by hbos
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

PeerConnection[Interface]::GetStats(RTCStatsCollectorCallback*) added. New file structure and targets: rtc_stats_api webrtc/api/stats/rtcstats.h webrtc/api/stats/rtcstats_objects.h webrtc/api/stats/rtcstatsreport.h rtc_stats (dep on rtc_stats_api) webrtc/stats/rtcstats.cc webrtc/stats/rtcstats_objects.cc webrtc/stats/rtcstatsreport.cc libjingle_peerconnection (dep on rtc_stats) webrtc/api/rtcstatscollector.cc webrtc/api/rtcstatscollector.h Placing rtc_stats_api headers in this separate target instead of libjingle_peerconnection avoids a circular dependency libjingle_peerconnection -> rtc_stats -> libjingle_peerconnection Code changes: PeerConnectionInterface::GetStats(RTCStatsCollectorCallback*) added for the new stats collection API. Implemented by PeerConnection. BUG=chromium:627816 Committed: https://crrev.com/74e1a4f96a4915c9ad3b0ddeff87cc9797606453 Cr-Commit-Position: refs/heads/master@{#14246}

Patch Set 1 #

Patch Set 2 : webrtc/api/stats/ = rtc_stats_api target #

Patch Set 3 : Reverted previous DEPS change (no need to rerun bots yet) #

Total comments: 9

Patch Set 4 : Addressed comments, added stats targets to .gn check_targets #

Patch Set 5 : Rebase with master #

Patch Set 6 : Added webrtc/api/rtcstats[report].h files including webrtc/api/stats/rtcstats[report].h #

Patch Set 7 : Rebase with master #

Patch Set 8 : Provide default implementation of GetStats in PeerConnectionInterface as to not break Chromium #

Patch Set 9 : Rebase with master #

Patch Set 10 : (Corrected an incorrect inclusion) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -1083 lines) Patch
M .gn View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M webrtc/api/BUILD.gn View 1 2 3 4 5 6 4 chunks +19 lines, -3 lines 0 comments Download
M webrtc/api/api.gyp View 1 2 3 3 chunks +17 lines, -3 lines 0 comments Download
M webrtc/api/peerconnection.h View 3 chunks +3 lines, -0 lines 0 comments Download
M webrtc/api/peerconnection.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectioninterface.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectionproxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/rtcstats.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -270 lines 0 comments Download
D webrtc/api/rtcstats_objects.h View 1 chunk +0 lines, -35 lines 0 comments Download
A + webrtc/api/rtcstatscollector.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
A + webrtc/api/rtcstatscollector.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + webrtc/api/rtcstatscollector_unittest.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
D webrtc/api/rtcstatsreport.h View 1 2 3 4 5 1 chunk +2 lines, -79 lines 0 comments Download
A + webrtc/api/stats/rtcstats.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
A + webrtc/api/stats/rtcstats_objects.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
A + webrtc/api/stats/rtcstatsreport.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/stats/BUILD.gn View 1 2 3 4 5 6 3 chunks +2 lines, -4 lines 0 comments Download
M webrtc/stats/rtcstats.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M webrtc/stats/rtcstats_objects.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/stats/rtcstats_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
D webrtc/stats/rtcstatscollector.h View 1 chunk +0 lines, -97 lines 0 comments Download
D webrtc/stats/rtcstatscollector.cc View 1 2 3 4 1 chunk +0 lines, -179 lines 0 comments Download
D webrtc/stats/rtcstatscollector_unittest.cc View 1 2 3 4 1 chunk +0 lines, -380 lines 0 comments Download
M webrtc/stats/rtcstatsreport.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/stats/rtcstatsreport_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/stats/stats.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 40 (17 generated)
hbos
Please take a look nisse, kjellander and hta. This being instead of https://codereview.webrtc.org/2335553006/.
4 years, 3 months ago (2016-09-13 10:30:02 UTC) #4
nisse-webrtc
On 2016/09/13 10:30:02, hbos wrote: > Please take a look nisse, kjellander and hta. This ...
4 years, 3 months ago (2016-09-13 11:25:37 UTC) #5
hbos
On 2016/09/13 11:25:37, nisse-webrtc wrote: > On 2016/09/13 10:30:02, hbos wrote: > > Please take ...
4 years, 3 months ago (2016-09-13 12:00:21 UTC) #6
hbos
What if? webrtc/api/stats/rtcstats.h webrtc/api/stats/rtcstats_objects.h webrtc/api/stats/rtcstatsreport.h = rtc_stats_headers webrtc/stats/rtcstats.cc webrtc/stats/rtcstats_objects.cc webrtc/stats/rtcstatsreport.cc = rtc_stats deps: rtc_stats_headers webrtc/api/stats/rtcstatscollector.cc ...
4 years, 3 months ago (2016-09-13 12:24:29 UTC) #7
nisse-webrtc
On 2016/09/13 12:24:29, hbos wrote: > What if? I'd really like to hear kjellander's opinion. ...
4 years, 3 months ago (2016-09-13 12:43:45 UTC) #8
hbos
Please take a look, kjellander. On 2016/09/13 12:43:45, nisse-webrtc wrote: > On 2016/09/13 12:24:29, hbos ...
4 years, 3 months ago (2016-09-13 14:34:41 UTC) #10
nisse-webrtc
On 2016/09/13 14:34:41, hbos wrote: > Ah, I followed the pattern of webrtc/api/call/ and design ...
4 years, 3 months ago (2016-09-14 06:40:33 UTC) #11
hta-webrtc
As I remember the google3 rules (gn is, if I understand it, a descendant of ...
4 years, 3 months ago (2016-09-14 10:20:58 UTC) #13
hbos
Ping kjellander.
4 years, 3 months ago (2016-09-14 13:18:56 UTC) #14
kjellander_webrtc
+solenberg Does it pass gn if you add these targets to check_targets at https://chromium.googlesource.com/external/webrtc/+/master/.gn#22 ? ...
4 years, 3 months ago (2016-09-14 13:55:28 UTC) #16
hbos
PTAL kjellander. On 2016/09/14 13:55:28, kjellander_webrtc wrote: > +solenberg > > Does it pass gn ...
4 years, 3 months ago (2016-09-14 18:48:03 UTC) #17
kjellander_webrtc
Thanks for adding to check_targets. lgtm https://codereview.webrtc.org/2331373004/diff/40001/webrtc/api/BUILD.gn File webrtc/api/BUILD.gn (right): https://codereview.webrtc.org/2331373004/diff/40001/webrtc/api/BUILD.gn#newcode312 webrtc/api/BUILD.gn:312: suppressed_configs += [ ...
4 years, 3 months ago (2016-09-15 10:16:37 UTC) #18
hbos
Please take a look glaznev (webrtc/api/ OWNER) and PTAL nisse.
4 years, 3 months ago (2016-09-15 10:55:12 UTC) #20
the sun
On 2016/09/15 10:55:12, hbos wrote: > Please take a look glaznev (webrtc/api/ OWNER) and PTAL ...
4 years, 3 months ago (2016-09-15 12:14:31 UTC) #21
nisse-webrtc
lgtm
4 years, 3 months ago (2016-09-15 12:26:44 UTC) #22
hbos
Please take a look, glaznev. Note: I just added temporary files webrtc/api/rtcstats[report].h files that include ...
4 years, 3 months ago (2016-09-15 13:36:57 UTC) #27
hbos
On 2016/09/15 13:36:57, hbos wrote: > Please take a look, glaznev. > > Note: I ...
4 years, 3 months ago (2016-09-15 13:56:29 UTC) #28
AlexG
lgtm
4 years, 3 months ago (2016-09-15 17:17:45 UTC) #29
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/2331373004/180001
4 years, 3 months ago (2016-09-15 20:50:24 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
4 years, 3 months ago (2016-09-15 22:50:52 UTC) #34
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/2331373004/180001
4 years, 3 months ago (2016-09-16 06:24:30 UTC) #36
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-09-16 06:33:05 UTC) #38
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 06:33:13 UTC) #40
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/74e1a4f96a4915c9ad3b0ddeff87cc9797606453
Cr-Commit-Position: refs/heads/master@{#14246}

Powered by Google App Engine
This is Rietveld 408576698