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

Issue 2307913002: Update AvgCounter to have the ability to include last period metric for subsequent intervals withou… (Closed)

Created:
4 years, 3 months ago by åsapersson
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, the sun, perkj_webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Update AvgCounter to have the ability to include last period metric for subsequent intervals without samples (e.g. for non-periodic updated stats). Integrate AvgCounter to be used for BWE stats in call. Fixes for stats regression in: WebRTC.Call.EstimatedSendBitrateInKbps WebRTC.Call.PacerBitrateInKbps Example: BWE for a 15 seconds long call (with intervals of 1 sec): |300|400|500|600|600|600|600| 0 | 0 | 0 | 0 | 0 |800|800|800| // 0 - network state down Reported via OnNetworkChanged: |300|400|500|600| x | x | x | 0 | x | x | x | x |800| x | x | // x - empty interval, 0 -> pauses stats Stats: |300|400|500|600|600|600|600| - | - | - | - | - |800|800|800| // x -> last value used (intervals during pause ignored) AvgCounter uses the average of samples within an interval (interval length is 2 sec). BUG=webrtc:6244 Committed: https://crrev.com/ce2e13602e06c5f7df7245f8d0e66e7070c0be34 Cr-Commit-Position: refs/heads/master@{#14147}

Patch Set 1 #

Patch Set 2 #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : address comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -101 lines) Patch
M webrtc/call/call.cc View 1 2 3 4 chunks +38 lines, -32 lines 3 comments Download
M webrtc/video/send_delay_stats.cc View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/video/stats_counter.h View 1 2 11 chunks +41 lines, -3 lines 0 comments Download
M webrtc/video/stats_counter.cc View 1 2 3 14 chunks +95 lines, -25 lines 0 comments Download
M webrtc/video/stats_counter_unittest.cc View 1 2 3 9 chunks +126 lines, -40 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
åsapersson
4 years, 3 months ago (2016-09-05 14:27:57 UTC) #3
stefan-webrtc
It's not clear to me how this CL fixes the bug. Could you describe that ...
4 years, 3 months ago (2016-09-08 07:28:15 UTC) #5
åsapersson
https://codereview.webrtc.org/2307913002/diff/40001/webrtc/video/stats_counter.cc File webrtc/video/stats_counter.cc (right): https://codereview.webrtc.org/2307913002/diff/40001/webrtc/video/stats_counter.cc#newcode48 webrtc/video/stats_counter.cc:48: bool HasSamples() const { return stats_.num_samples > 0; } ...
4 years, 3 months ago (2016-09-08 13:15:02 UTC) #8
stefan-webrtc
Thanks for the new description, it made things a lot clearer. lgtm
4 years, 3 months ago (2016-09-08 14:21:15 UTC) #10
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/2307913002/80001
4 years, 3 months ago (2016-09-09 06:26:29 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 3 months ago (2016-09-09 07:13:39 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/ce2e13602e06c5f7df7245f8d0e66e7070c0be34 Cr-Commit-Position: refs/heads/master@{#14147}
4 years, 3 months ago (2016-09-09 07:13:42 UTC) #17
perkj_webrtc
4 years, 3 months ago (2016-09-10 07:12:54 UTC) #19
Message was sent while issue was closed.
a bit late but can you remove the need for locking now?

https://codereview.webrtc.org/2307913002/diff/80001/webrtc/call/call.cc
File webrtc/call/call.cc (right):

https://codereview.webrtc.org/2307913002/diff/80001/webrtc/call/call.cc#newco...
webrtc/call/call.cc:762: rtc::CritScope lock(&bitrate_crit_);
is this lock still needed?

https://codereview.webrtc.org/2307913002/diff/80001/webrtc/call/call.cc#newco...
webrtc/call/call.cc:768: bool sending_video;
dito- lock needed?

https://codereview.webrtc.org/2307913002/diff/80001/webrtc/call/call.cc#newco...
webrtc/call/call.cc:774: rtc::CritScope lock(&bitrate_crit_);
and this?

Powered by Google App Engine
This is Rietveld 408576698