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

Issue 2270033004: RTCStatsCollector collecting stats on multiple threads. (Closed)

Created:
4 years, 4 months ago by hbos
Modified:
4 years, 3 months ago
Reviewers:
AlexG, hta-webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

RTCStatsCollector collecting stats on multiple threads. Changes GetStatsReport to a callback-based function. Stats collection is dispatched to three different stats collecting methods, being invoked asynchronously on the signaling, worker and network threads. The three resulting stats reports are merged into one before returned. The only current stats being collected is on the signaling thread, but a FakeRTCStatsCollector is able to test the multi-threaded and stats-merging behaviors. Future CLs simply have to put their stats collecting code in the appropriate ProducePartialResultsOnFooThread method. BUG=chromium:627816 Committed: https://crrev.com/c82f2e1613e394f92c56d14c38b3f9069075039e Cr-Commit-Position: refs/heads/master@{#14064}

Patch Set 1 #

Patch Set 2 : (nits, no need to rerun bots yet) #

Total comments: 14

Patch Set 3 : Use of GUARDED_BY to document variables used on multiple threads needing lock_ #

Patch Set 4 : Rebase with master, adjusting timestamps to int64_t microseconds #

Patch Set 5 : Addressed comments #

Patch Set 6 : Corrected a comment, not re-running bots yet #

Patch Set 7 : No lock_, all member variables touched only on signaling thread #

Patch Set 8 : partial_report_timestamp_us_ var instead of passing it (cache_timestamp_us) as an argument #

Total comments: 4

Patch Set 9 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+401 lines, -46 lines) Patch
M webrtc/stats/rtcstatscollector.h View 1 2 3 4 5 6 7 8 3 chunks +44 lines, -7 lines 0 comments Download
M webrtc/stats/rtcstatscollector.cc View 1 2 3 4 5 6 7 1 chunk +116 lines, -22 lines 0 comments Download
M webrtc/stats/rtcstatscollector_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +241 lines, -17 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
hbos
Please take a look, hta and glaznev.
4 years, 3 months ago (2016-08-31 08:53:21 UTC) #6
hta-webrtc
I had a few comments.... the principle seems fine with me, the implementation seems to ...
4 years, 3 months ago (2016-08-31 09:57:37 UTC) #7
hbos
Please take a look, hta. https://codereview.webrtc.org/2270033004/diff/80001/webrtc/stats/rtcstatscollector.cc File webrtc/stats/rtcstatscollector.cc (right): https://codereview.webrtc.org/2270033004/diff/80001/webrtc/stats/rtcstatscollector.cc#newcode64 webrtc/stats/rtcstatscollector.cc:64: callbacks = callbacks_; On ...
4 years, 3 months ago (2016-09-01 14:16:16 UTC) #8
hbos
I got rid of the lock_ altogether, please take another look hta.
4 years, 3 months ago (2016-09-02 08:17:08 UTC) #9
hta-webrtc
lgtm That fake clock was interesting - modify the global environment in a scoped variable.... ...
4 years, 3 months ago (2016-09-02 08:47:13 UTC) #11
hbos
Please take a look, glaznev. https://codereview.webrtc.org/2270033004/diff/200001/webrtc/stats/rtcstatscollector.h File webrtc/stats/rtcstatscollector.h (right): https://codereview.webrtc.org/2270033004/diff/200001/webrtc/stats/rtcstatscollector.h#newcode22 webrtc/stats/rtcstatscollector.h:22: #include "webrtc/base/thread_annotations.h" On 2016/09/02 ...
4 years, 3 months ago (2016-09-02 09:18:30 UTC) #12
AlexG
lgtm
4 years, 3 months ago (2016-09-02 17:25:58 UTC) #13
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/2270033004/220001
4 years, 3 months ago (2016-09-05 07:54:13 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:220001)
4 years, 3 months ago (2016-09-05 08:36:53 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-05 08:36:57 UTC) #20
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c82f2e1613e394f92c56d14c38b3f9069075039e
Cr-Commit-Position: refs/heads/master@{#14064}

Powered by Google App Engine
This is Rietveld 408576698