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 1640053003: Add class which periodically computes statistics. (Closed)

Created:
4 years, 11 months ago by åsapersson
Modified:
4 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, tterriberry_mozilla.com, qiang.lu, niklas.enbom, andresp, peah-webrtc, the sun, pbos-webrtc, 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 class which periodically computes statistics. During a period (e.g. 2 seconds), different metrics can be computed, e.g.: - average of samples - percentage/permille of samples - units per second Each periodic metric can be either: - reported to an observer each period - aggregated during the call (e.g. min, max, average) BUG=webrtc:5283 Committed: https://crrev.com/0e9d6d9e0c2e553ddd79d497b2e9e47a612d2ee1 Cr-Commit-Position: refs/heads/master@{#12847}

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : address comments #

Patch Set 5 : remove histogram #

Patch Set 6 : report input fps #

Patch Set 7 : remove report of input fps #

Patch Set 8 : #

Patch Set 9 : rebase #

Total comments: 14

Patch Set 10 : addressed comments #

Patch Set 11 : add MaxCounter #

Total comments: 2

Patch Set 12 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+783 lines, -0 lines) Patch
M webrtc/video/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/video/stats_counter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +227 lines, -0 lines 0 comments Download
A webrtc/video/stats_counter.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +231 lines, -0 lines 0 comments Download
A webrtc/video/stats_counter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +320 lines, -0 lines 0 comments Download
M webrtc/video/webrtc_video.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/webrtc_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 40 (24 generated)
åsapersson
4 years, 11 months ago (2016-01-28 08:41:32 UTC) #4
stefan-webrtc
A first pass, I'll probably have to go through this in detail again though https://codereview.webrtc.org/1640053003/diff/60001/webrtc/video/stats_counter.cc ...
4 years, 10 months ago (2016-01-29 15:22:46 UTC) #5
stefan-webrtc
Btw, could you comment on how this is going to be used and for what ...
4 years, 10 months ago (2016-01-29 15:24:25 UTC) #6
åsapersson
On 2016/01/29 15:24:25, stefan-webrtc (holmer) wrote: > Btw, could you comment on how this is ...
4 years, 10 months ago (2016-02-09 09:24:33 UTC) #12
mflodman
https://codereview.webrtc.org/1640053003/diff/300001/webrtc/video/stats_counter.h File webrtc/video/stats_counter.h (right): https://codereview.webrtc.org/1640053003/diff/300001/webrtc/video/stats_counter.h#newcode38 webrtc/video/stats_counter.h:38: class AggStats { What does 'Agg' stand for? Can ...
4 years, 7 months ago (2016-05-06 07:33:30 UTC) #18
stefan-webrtc
https://codereview.webrtc.org/1640053003/diff/300001/webrtc/video/stats_counter.cc File webrtc/video/stats_counter.cc (right): https://codereview.webrtc.org/1640053003/diff/300001/webrtc/video/stats_counter.cc#newcode49 webrtc/video/stats_counter.cc:49: stats_.average = (sum_ + (stats_.num_samples / 2)) / stats_.num_samples; ...
4 years, 7 months ago (2016-05-06 11:10:17 UTC) #19
åsapersson
https://codereview.webrtc.org/1640053003/diff/300001/webrtc/video/stats_counter.cc File webrtc/video/stats_counter.cc (right): https://codereview.webrtc.org/1640053003/diff/300001/webrtc/video/stats_counter.cc#newcode49 webrtc/video/stats_counter.cc:49: stats_.average = (sum_ + (stats_.num_samples / 2)) / stats_.num_samples; ...
4 years, 7 months ago (2016-05-09 14:36:51 UTC) #23
mflodman
https://codereview.webrtc.org/1640053003/diff/440001/webrtc/video/stats_counter.h File webrtc/video/stats_counter.h (right): https://codereview.webrtc.org/1640053003/diff/440001/webrtc/video/stats_counter.h#newcode40 webrtc/video/stats_counter.h:40: class AggregatedCounter { To make the header even simpler, ...
4 years, 7 months ago (2016-05-17 11:56:18 UTC) #26
åsapersson
https://codereview.webrtc.org/1640053003/diff/440001/webrtc/video/stats_counter.h File webrtc/video/stats_counter.h (right): https://codereview.webrtc.org/1640053003/diff/440001/webrtc/video/stats_counter.h#newcode40 webrtc/video/stats_counter.h:40: class AggregatedCounter { On 2016/05/17 11:56:18, mflodman wrote: > ...
4 years, 7 months ago (2016-05-18 12:01:34 UTC) #28
stefan-webrtc
lgtm
4 years, 7 months ago (2016-05-20 12:56:24 UTC) #29
mflodman
lgtm
4 years, 7 months ago (2016-05-23 05:11:00 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1640053003/480001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1640053003/480001
4 years, 7 months ago (2016-05-23 09:44:51 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 7 months ago (2016-05-23 11:45:30 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1640053003/480001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1640053003/480001
4 years, 7 months ago (2016-05-23 13:06:19 UTC) #36
commit-bot: I haz the power
Committed patchset #12 (id:480001)
4 years, 7 months ago (2016-05-23 13:08:00 UTC) #38
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 13:08:11 UTC) #40
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/0e9d6d9e0c2e553ddd79d497b2e9e47a612d2ee1
Cr-Commit-Position: refs/heads/master@{#12847}

Powered by Google App Engine
This is Rietveld 408576698