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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/test/plot_bars.sh

Issue 1257683006: Efficient MetricRecorder (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased on master Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/metric_recorder_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 3 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license 5 # Use of this source code is governed by a BSD-style license
6 # that can be found in the LICENSE file in the root of the source 6 # that can be found in the LICENSE file in the root of the source
7 # tree. An additional intellectual property rights grant can be found 7 # tree. An additional intellectual property rights grant can be found
8 # in the file PATENTS. All contributing project authors may 8 # in the file PATENTS. All contributing project authors may
9 # be found in the AUTHORS file in the root of the source tree. 9 # be found in the AUTHORS file in the root of the source tree.
10 10
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 echo "set boxwidth $box_width" 104 echo "set boxwidth $box_width"
105 105
106 # Plots can be directly exported to image files. 106 # Plots can be directly exported to image files.
107 file_name=$(echo "$labels" | grep "^LABEL.$figure" | cut -f 5 | head -n 1) 107 file_name=$(echo "$labels" | grep "^LABEL.$figure" | cut -f 5 | head -n 1)
108 108
109 y_max=0 # Used to scale the plot properly. 109 y_max=0 # Used to scale the plot properly.
110 110
111 # Scale all latency plots with the same vertical scale. 111 # Scale all latency plots with the same vertical scale.
112 delay_figure=5 112 delay_figure=5
113 if (( $figure==$delay_figure )) ; then 113 if (( $figure==$delay_figure )) ; then
114 y_max=250 114 y_max=400
115 else # Take y_max = 1.1 * highest plot value. 115 else # Take y_max = 1.1 * highest plot value.
116 116
117 # Since only the optimal bitrate for the first flow is being ploted, 117 # Since only the optimal bitrate for the first flow is being ploted,
118 # consider only this one for scalling purposes. 118 # consider only this one for scalling purposes.
119 data_sets=$(echo "$bars" | grep "LIMITERRORBAR.$figure" | cut -f 3 | \ 119 data_sets=$(echo "$bars" | grep "LIMITERRORBAR.$figure" | cut -f 3 | \
120 sed 's/_/\t/g' | cut -f 1 | sort | uniq) 120 sed 's/_/\t/g' | cut -f 1 | sort | uniq)
121 121
122 if (( ${#data_sets[@]} > "0" )); then 122 if (( ${#data_sets[@]} > "0" )); then
123 for set in $data_sets ; do 123 for set in $data_sets ; do
124 y=$(echo "$bars" | grep "LIMITERRORBAR.$figure.$set" | cut -f 8 | \ 124 y=$(echo "$bars" | grep "LIMITERRORBAR.$figure.$set" | cut -f 8 | \
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 title '$retouched_title'" 277 title '$retouched_title'"
278 done 278 done
279 279
280 fi 280 fi
281 281
282 echo "unset multiplot" 282 echo "unset multiplot"
283 done 283 done
284 } 284 }
285 285
286 gen_gnuplot_bar_input | gnuplot -persist 286 gen_gnuplot_bar_input | gnuplot -persist
OLDNEW
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/metric_recorder_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698