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

Issue 1279433006: Add a rate tracker that tracks rate over a given interval split up into buckets that accumulate uni… (Closed)

Created:
5 years, 4 months ago by tpsiaki
Modified:
5 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), stefan-webrtc, tterriberry_mozilla.com, andresp, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add a rate tracker that tracks rate over a given interval split up into buckets that accumulate unit counts for their portion of said interval and use this instead of the standard rate tracker so that the values of retrieved frame rate stats are completely independent of the polling rate. BUG= R=asapersson@webrtc.org, noahric@chromium.org, pbos@webrtc.org, pthatcher@webrtc.org Committed: https://crrev.com/6304626268238a074051910d201e9a77aae677e0 Cr-Commit-Position: refs/heads/master@{#9933}

Patch Set 1 #

Patch Set 2 : win64 fixes #

Patch Set 3 : Fix type issues on win64. #

Total comments: 20

Patch Set 4 : CL Comment Changes #

Patch Set 5 : Fix win64 #

Patch Set 6 : win64 fix #

Total comments: 3

Patch Set 7 : BucketRateTracker replaces RateTracker #

Patch Set 8 : Add new tests and fix ComputeTotalRate bug #

Patch Set 9 : update gn build #

Patch Set 10 : Win64 fix #

Total comments: 14

Patch Set 11 : New tests and readability fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -86 lines) Patch
M webrtc/base/ratetracker.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +38 lines, -11 lines 0 comments Download
M webrtc/base/ratetracker.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +116 lines, -33 lines 0 comments Download
M webrtc/base/ratetracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +104 lines, -23 lines 0 comments Download
M webrtc/p2p/base/port.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +8 lines, -6 lines 0 comments Download
M webrtc/p2p/base/tcpport.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video/receive_statistics_proxy.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video/receive_statistics_proxy.cc View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M webrtc/video/send_statistics_proxy.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/video/send_statistics_proxy.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
noahric
https://codereview.webrtc.org/1279433006/diff/40001/webrtc/base/bucketratetracker.cc File webrtc/base/bucketratetracker.cc (right): https://codereview.webrtc.org/1279433006/diff/40001/webrtc/base/bucketratetracker.cc#newcode41 webrtc/base/bucketratetracker.cc:41: uint32 interval_milliseconds = bucket_milliseconds_ * interval_buckets_; Yeah, this would ...
5 years, 4 months ago (2015-08-07 23:56:38 UTC) #2
tpsiaki
https://codereview.webrtc.org/1279433006/diff/40001/webrtc/base/bucketratetracker.cc File webrtc/base/bucketratetracker.cc (right): https://codereview.webrtc.org/1279433006/diff/40001/webrtc/base/bucketratetracker.cc#newcode41 webrtc/base/bucketratetracker.cc:41: uint32 interval_milliseconds = bucket_milliseconds_ * interval_buckets_; On 2015/08/07 23:56:38, ...
5 years, 4 months ago (2015-08-11 18:33:27 UTC) #3
tpsiaki
5 years, 4 months ago (2015-08-12 21:07:22 UTC) #5
tpsiaki
5 years, 4 months ago (2015-08-17 20:42:50 UTC) #9
pbos-webrtc
Can you consolidate this into rtc::RateTracker? I think the get-and-reset case should just be checking ...
5 years, 3 months ago (2015-08-27 15:04:10 UTC) #11
åsapersson
https://codereview.webrtc.org/1279433006/diff/100001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1279433006/diff/100001/webrtc/video/send_statistics_proxy.cc#newcode47 webrtc/video/send_statistics_proxy.cc:47: kFrameRateTrackerInterval * 1000u)); input_fps and sent_fps below are an ...
5 years, 3 months ago (2015-08-28 08:12:47 UTC) #12
pbos-webrtc
https://codereview.webrtc.org/1279433006/diff/100001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/1279433006/diff/100001/webrtc/video/send_statistics_proxy.cc#newcode47 webrtc/video/send_statistics_proxy.cc:47: kFrameRateTrackerInterval * 1000u)); On 2015/08/28 08:12:47, åsapersson wrote: > ...
5 years, 3 months ago (2015-08-28 12:47:55 UTC) #13
tpsiaki
Replaced RateTracker with the BucketRateTracker version, added TotalSampleCount and ComputeTotalRate functions to support all of ...
5 years, 3 months ago (2015-09-01 20:59:17 UTC) #14
åsapersson
On 2015/09/01 20:59:17, tpsiaki wrote: > Replaced RateTracker with the BucketRateTracker version, added TotalSampleCount > ...
5 years, 3 months ago (2015-09-03 14:07:35 UTC) #15
pbos-webrtc
On 2015/09/03 14:07:35, åsapersson wrote: > On 2015/09/01 20:59:17, tpsiaki wrote: > > Replaced RateTracker ...
5 years, 3 months ago (2015-09-03 15:03:10 UTC) #16
tpsiaki
On 2015/09/03 15:03:10, pbos-webrtc wrote: > On 2015/09/03 14:07:35, åsapersson wrote: > > On 2015/09/01 ...
5 years, 3 months ago (2015-09-03 17:18:57 UTC) #17
noahric
Overall LGTM, a few small comment changes and a few more unit tests requested. https://codereview.webrtc.org/1279433006/diff/180001/webrtc/base/ratetracker.cc ...
5 years, 3 months ago (2015-09-03 21:42:24 UTC) #18
tpsiaki
Thanks! https://codereview.webrtc.org/1279433006/diff/180001/webrtc/base/ratetracker.cc File webrtc/base/ratetracker.cc (right): https://codereview.webrtc.org/1279433006/diff/180001/webrtc/base/ratetracker.cc#newcode14 webrtc/base/ratetracker.cc:14: #include <assert.h> On 2015/09/03 21:42:24, noahric wrote: > ...
5 years, 3 months ago (2015-09-03 23:28:59 UTC) #19
pthatcher1
lgtm for p2p parts
5 years, 3 months ago (2015-09-14 17:16:41 UTC) #20
tpsiaki
Committed patchset #11 (id:190001) manually as 6304626268238a074051910d201e9a77aae677e0 (presubmit successful).
5 years, 3 months ago (2015-09-14 17:38:26 UTC) #21
commit-bot: I haz the power
5 years, 3 months ago (2015-09-14 17:38:32 UTC) #22
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/6304626268238a074051910d201e9a77aae677e0
Cr-Commit-Position: refs/heads/master@{#9933}

Powered by Google App Engine
This is Rietveld 408576698