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

Issue 1257683006: Efficient MetricRecorder (Closed)

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

Description

Efficient Metric Recorder Computing all metrics using constant extra memory. PlotHistogram methods are executed in constant time. -- Previously throughput and delay were using O(num_packets) extra memory and their associated PlotHistograms took linear time complexity. Added MetricRecorder unittests R=stefan@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/e2cb1f12c3d1c5500de1b733dfc8bbfea504d89f

Patch Set 1 : Optimized MetricRecorder #

Patch Set 2 : Added a comment, removed unused member #

Total comments: 9

Patch Set 3 : Added MetricRecorder unittests #

Patch Set 4 : Rebased on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -155 lines) Patch
M webrtc/modules/modules.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/metric_recorder.h View 1 2 4 chunks +27 lines, -11 lines 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc View 1 2 11 chunks +132 lines, -143 lines 0 comments Download
A webrtc/modules/remote_bitrate_estimator/test/metric_recorder_unittest.cc View 1 2 1 chunk +107 lines, -0 lines 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/plot_bars.sh View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (2 generated)
magalhaesc
Added a comment
5 years, 5 months ago (2015-07-26 00:31:03 UTC) #2
magalhaesc
https://codereview.webrtc.org/1257683006/diff/20001/webrtc/modules/remote_bitrate_estimator/test/metric_recorder.h File webrtc/modules/remote_bitrate_estimator/test/metric_recorder.h (right): https://codereview.webrtc.org/1257683006/diff/20001/webrtc/modules/remote_bitrate_estimator/test/metric_recorder.h#newcode162 webrtc/modules/remote_bitrate_estimator/test/metric_recorder.h:162: int64_t sum_delays_square_ms2_; // Used to compute standar deviation. standard
5 years, 5 months ago (2015-07-26 01:08:02 UTC) #3
magalhaesc
https://codereview.webrtc.org/1257683006/diff/20001/webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc File webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc (right): https://codereview.webrtc.org/1257683006/diff/20001/webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc#newcode346 webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc:346: for (auto rit = delay_histogram_ms_.rbegin(); This slight optimization for ...
5 years, 5 months ago (2015-07-26 01:10:22 UTC) #4
magalhaesc
Thanks for the suggestion, MetricRecorder is now much more efficient.
5 years, 5 months ago (2015-07-27 05:14:14 UTC) #5
stefan-webrtc
lgtm, but please remove the n>50 code, since as you said, it adds unnecessary complexity. ...
5 years, 4 months ago (2015-07-27 07:55:22 UTC) #6
magalhaesc
Comments addressed https://codereview.webrtc.org/1257683006/diff/20001/webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc File webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc (right): https://codereview.webrtc.org/1257683006/diff/20001/webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc#newcode186 webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc:186: if (delay_histogram_ms_.find(delay_ms) == delay_histogram_ms_.end()) { On 2015/07/27 ...
5 years, 4 months ago (2015-07-29 18:04:37 UTC) #7
magalhaesc
Added MetricRecorder unittests
5 years, 4 months ago (2015-07-29 18:38:49 UTC) #8
magalhaesc
https://codereview.webrtc.org/1257683006/diff/20001/webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc File webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc (right): https://codereview.webrtc.org/1257683006/diff/20001/webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc#newcode186 webrtc/modules/remote_bitrate_estimator/test/metric_recorder.cc:186: if (delay_histogram_ms_.find(delay_ms) == delay_histogram_ms_.end()) { On 2015/07/29 18:04:37, magalhaesc ...
5 years, 4 months ago (2015-07-30 08:33:42 UTC) #10
magalhaesc
Added MetricRecorder unittests
5 years, 4 months ago (2015-07-30 08:35:53 UTC) #11
magalhaesc
Rebased on master
5 years, 4 months ago (2015-07-30 09:22:00 UTC) #12
magalhaesc
5 years, 4 months ago (2015-07-30 09:22:19 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:80001) manually as
e2cb1f12c3d1c5500de1b733dfc8bbfea504d89f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698