|
|
DescriptionAdd loss-based BWE estimate to the outgoing bitrate plot.
Committed: https://crrev.com/8058e58d8fb35b4aba8330d19ffb0e0ef4b9d0cf
Cr-Commit-Position: refs/heads/master@{#13517}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Use emplace_back #Patch Set 3 : Use default constructor for POD type. #
Messages
Total messages: 32 (18 generated)
terelius@webrtc.org changed reviewers: + ivoc@webrtc.org, stefan@webrtc.org
Please take a look.
LGTM, see some minor remarks below. https://codereview.webrtc.org/2165523002/diff/1/webrtc/tools/event_log_visual... File webrtc/tools/event_log_visualizer/analyzer.cc (right): https://codereview.webrtc.org/2165523002/diff/1/webrtc/tools/event_log_visual... webrtc/tools/event_log_visualizer/analyzer.cc:213: bwe_loss_updates_.push_back(BwePacketLossEvent( You could use emplace_back here to construct the object directly within the container. https://codereview.webrtc.org/2165523002/diff/1/webrtc/tools/event_log_visual... webrtc/tools/event_log_visualizer/analyzer.cc:576: plot->series.back().points.push_back(TimeSeriesPoint(x, y)); Another opportunity for emplace_back.
lgtm One thing that you may want to address at somepoint is to consider the testability of this. Could you perhaps send in a test proto and verify that the output python code is as expected?
https://codereview.webrtc.org/2165523002/diff/1/webrtc/tools/event_log_visual... File webrtc/tools/event_log_visualizer/analyzer.cc (right): https://codereview.webrtc.org/2165523002/diff/1/webrtc/tools/event_log_visual... webrtc/tools/event_log_visualizer/analyzer.cc:213: bwe_loss_updates_.push_back(BwePacketLossEvent( On 2016/07/19 09:42:48, ivoc wrote: > You could use emplace_back here to construct the object directly within the > container. Changed the GetBwePacketLossEvent to write the directly to the BwePacketLossEvent object instead. While it doesn't use emplace_back, I think this is about as efficient and it is a few lines shorter. Wdyt? https://codereview.webrtc.org/2165523002/diff/1/webrtc/tools/event_log_visual... webrtc/tools/event_log_visualizer/analyzer.cc:576: plot->series.back().points.push_back(TimeSeriesPoint(x, y)); On 2016/07/19 09:42:48, ivoc wrote: > Another opportunity for emplace_back. Done.
On 2016/07/19 09:49:34, stefan-webrtc (holmer) wrote: > lgtm > > One thing that you may want to address at somepoint is to consider the > testability of this. Could you perhaps send in a test proto and verify that the > output python code is as expected? Doing a naive text comparison of the python file would give a lot of false positives. Almost any change to the analysis tool would be expected to change the python output in some way. It might be better to store the expected data series in a file with one file per plot. Then we could import the data series and compare with the generated TimeSeries objects. That way we could have one test per plot, so it would be easier to spot if a change accidentally affects other plots than the intended one.
On 2016/07/19 13:16:45, terelius wrote: > On 2016/07/19 09:49:34, stefan-webrtc (holmer) wrote: > > lgtm > > > > One thing that you may want to address at somepoint is to consider the > > testability of this. Could you perhaps send in a test proto and verify that > the > > output python code is as expected? > > Doing a naive text comparison of the python file would give a lot of false > positives. Almost any change to the analysis tool would be expected to change > the python output in some way. > > It might be better to store the expected data series in a file with one file per > plot. Then we could import the data series and compare with the generated > TimeSeries objects. That way we could have one test per plot, so it would be > easier to spot if a change accidentally affects other plots than the intended > one. Sounds better, yes. I think it'd be enough with a few data points per time series we test, so we may not even need to store them in separate files.
The CQ bit was checked by terelius@webrtc.org
The patchset sent to the CQ was uploaded after l-g-t-m from ivoc@webrtc.org, stefan@webrtc.org Link to the patchset: https://codereview.webrtc.org/2165523002/#ps20001 (title: "Use emplace_back")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_baremetal/builds/12750)
The CQ bit was checked by terelius@webrtc.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/15058)
terelius@webrtc.org changed reviewers: + phoglund@webrtc.org
The CQ bit was checked by terelius@webrtc.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/...
rs lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_libfuzzer_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_libfuzzer_rel/bui...)
The CQ bit was checked by terelius@webrtc.org
The patchset sent to the CQ was uploaded after l-g-t-m from ivoc@webrtc.org, stefan@webrtc.org Link to the patchset: https://codereview.webrtc.org/2165523002/#ps40001 (title: "Use default constructor for POD type.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_libfuzzer_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_libfuzzer_rel/bui...)
The CQ bit was checked by terelius@webrtc.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/...
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Add loss-based BWE estimate to the outgoing bitrate plot. ========== to ========== Add loss-based BWE estimate to the outgoing bitrate plot. Committed: https://crrev.com/8058e58d8fb35b4aba8330d19ffb0e0ef4b9d0cf Cr-Commit-Position: refs/heads/master@{#13517} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/8058e58d8fb35b4aba8330d19ffb0e0ef4b9d0cf Cr-Commit-Position: refs/heads/master@{#13517} |