8 Commits

Author SHA1 Message Date
asapersson
fe647f4ab2 Add ability to handle data from multiple streams in RateAccCounter.
BUG=webrtc:5283

Review-Url: https://codereview.webrtc.org/2235223002
Cr-Commit-Position: refs/heads/master@{#14864}
2016-11-01 07:21:41 +00:00
asapersson
e402a14668 Make process interval configurable for MaxCounter class.
The default process interval (2000 ms) is used for the other counter classes.

BUG=webrtc:5283

Review-Url: https://codereview.webrtc.org/2388043003
Cr-Commit-Position: refs/heads/master@{#14560}
2016-10-07 06:39:23 +00:00
kwiberg
ac9f876bc0 Sort #includes that got unsorted when gmock.h and gtest.h moved to webrtc/test/
gmock.h and gtest.h were moved (or rather, got wrappers so that we
could put some icky compatibility hacks in one place instead of 500)
in this CL: https://codereview.webrtc.org/2358993004/

NOPRESUBMIT=true
BUG=webrtc:6398

Review-Url: https://codereview.webrtc.org/2381013002
Cr-Commit-Position: refs/heads/master@{#14464}
2016-10-01 05:29:53 +00:00
kwiberg
77eab70470 Enable the -Wundef warning for clang
NOPRESUBMIT=true
BUG=webrtc:6398

Review-Url: https://codereview.webrtc.org/2358993004
Cr-Commit-Position: refs/heads/master@{#14425}
2016-09-29 00:42:08 +00:00
asapersson
ce2e13602e 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

Review-Url: https://codereview.webrtc.org/2307913002
Cr-Commit-Position: refs/heads/master@{#14147}
2016-09-09 07:13:39 +00:00
asapersson
250fd97a67 Use RateCounter for received bitrate stats:
"WebRTC.Call.BitrateReceivedInKbps"
"WebRTC.Call.VideoBitrateReceivedInKbps"
"WebRTC.Call.AudioBitrateReceivedInKbps"
"WebRTC.Call.RtcpBitrateReceivedInBps"

Reports the average of periodically computed bitrates over a call (2 sec interval). Adds possibility to later modify the stats and use/report the periodic bitrates.

BUG=webrtc:5283

Review-Url: https://codereview.webrtc.org/2303763002
Cr-Commit-Position: refs/heads/master@{#14119}
2016-09-08 07:07:28 +00:00
asapersson
5093b38497 Make variable for selecting if intervals without samples should be included in stats configurable (for rate counters).
BUG=

Review-Url: https://codereview.webrtc.org/2236923002
Cr-Commit-Position: refs/heads/master@{#13740}
2016-08-15 08:20:37 +00:00
asapersson
0e9d6d9e0c 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

Review-Url: https://codereview.webrtc.org/1640053003
Cr-Commit-Position: refs/heads/master@{#12847}
2016-05-23 13:08:05 +00:00