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

Issue 2583883002: RTCStatsCollector: Utilize network thread to minimize thread hops. (Closed)

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

Description

RTCStatsCollector: Utilize network thread to minimize thread hops. (This is a re-upload of https://codereview.webrtc.org/2567243003/, the CQ stopped working there.) The previously used WebRtcSession::GetTransportStats did a synchronous invoke per channel (voice, video, data) on the signaling thread to the network thread - e.g. 3 blocking invokes. It is replaced by WebRtcSession::GetStats[_s] which can be invoked on the signaling thread or on any thread if a ChannelNamePairs argument is present (provided by WebRtcSession::GetChannelNamePairs on the signaling thread). With these changes, and changes allowing the getting of certificates from any thread, the RTCStatsCollector can turn the 3 blocking thread invokes into 1 non-blocking invoke. BUG=webrtc:6875, chromium:627816 Review-Url: https://codereview.webrtc.org/2583883002 Cr-Commit-Position: refs/heads/master@{#15672} Committed: https://chromium.googlesource.com/external/webrtc/+/df6075a77ffae5e0de7c272abc56183faf04814e

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -173 lines) Patch
M webrtc/api/rtcstatscollector.h View 4 chunks +15 lines, -7 lines 0 comments Download
M webrtc/api/rtcstatscollector.cc View 11 chunks +60 lines, -48 lines 0 comments Download
M webrtc/api/rtcstatscollector_unittest.cc View 13 chunks +46 lines, -34 lines 0 comments Download
M webrtc/api/statscollector.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/api/statscollector_unittest.cc View 17 chunks +77 lines, -43 lines 0 comments Download
M webrtc/api/test/mock_webrtcsession.h View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/api/webrtcsession.h View 1 5 chunks +27 lines, -5 lines 0 comments Download
M webrtc/api/webrtcsession.cc View 1 2 chunks +43 lines, -28 lines 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M webrtc/p2p/base/transportcontroller.cc View 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (19 generated)
hbos
PTAL pthatcher, deadbeef, hta. This is a re-upload of https://codereview.webrtc.org/2567243003/, the CQ stopped working for ...
4 years ago (2016-12-16 13:57:16 UTC) #5
Taylor Brandstetter
If this is just a reupload, lgtm
4 years ago (2016-12-16 18:31:55 UTC) #8
hta-webrtc
lgtm feel free to address or disregard comments. https://codereview.webrtc.org/2583883002/diff/1/webrtc/api/webrtcsession.cc File webrtc/api/webrtcsession.cc (right): https://codereview.webrtc.org/2583883002/diff/1/webrtc/api/webrtcsession.cc#newcode998 webrtc/api/webrtcsession.cc:998: rtc::Bind(&WebRtcSession::GetSessionStats_n, ...
4 years ago (2016-12-19 09:32:58 UTC) #9
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/2583883002/40001
4 years ago (2016-12-19 12:37:36 UTC) #17
hbos
https://codereview.webrtc.org/2583883002/diff/1/webrtc/api/webrtcsession.cc File webrtc/api/webrtcsession.cc (right): https://codereview.webrtc.org/2583883002/diff/1/webrtc/api/webrtcsession.cc#newcode998 webrtc/api/webrtcsession.cc:998: rtc::Bind(&WebRtcSession::GetSessionStats_n, this, channel_name_pairs)); On 2016/12/19 09:32:57, hta-webrtc wrote: > ...
4 years ago (2016-12-19 12:37:40 UTC) #18
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/2583883002/40001
4 years ago (2016-12-19 12:49:06 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-19 12:58:06 UTC) #26
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/external/webrtc/+/df6075a77ffae5e0de7c272ab...

Powered by Google App Engine
This is Rietveld 408576698