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

Unified Diff: webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py

Issue 2999073002: Tweaked version of BBR for WebRTC. (Closed)
Patch Set: Updated according to comments. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/packet_sender.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py
diff --git a/webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py b/webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py
index 51aca1cf4cef2ec155e4208dc61431958cc3259a..02b20523e8d416d1cdd988e482f0a8a18ba327b5 100755
--- a/webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py
+++ b/webrtc/modules/remote_bitrate_estimator/test/plot_dynamics.py
@@ -78,7 +78,6 @@ class Figure(object):
axis = fig.add_subplot(n, 1, i+1)
self.subplots[i].PlotSubplot(axis)
-
class Subplot(object):
def __init__(self, var_names, xlabel, ylabel):
self.xlabel = xlabel
@@ -111,10 +110,12 @@ class Subplot(object):
y = [sample[1] for sample in self.samples[alg_name][ssrc][var_name]]
x = numpy.array(x)
y = numpy.array(y)
-
ssrc_count = len(self.samples[alg_name].keys())
l = GenerateLabel(var_name, ssrc, ssrc_count, alg_name)
- plt.plot(x, y, label=l, linewidth=2.0)
+ if l == 'MaxThroughput_':
+ plt.plot(x, y, label=l, linewidth=4.0)
+ else:
+ plt.plot(x, y, label=l, linewidth=2.0)
count += 1
plt.grid(True)
@@ -148,8 +149,12 @@ def main():
target_bitrate.AddSubplot(['target_bitrate_bps', 'acknowledged_bitrate'],
"Time (s)", "Bitrate (bps)")
+ min_rtt_state = Figure("MinRttState")
+ min_rtt_state.AddSubplot(['MinRtt'], "Time (s)", "Time (ms)")
+
# Select which figures to plot here.
- figures = [receiver, detector_state, trendline_state, target_bitrate]
+ figures = [receiver, detector_state, trendline_state, target_bitrate,
+ min_rtt_state]
# Add samples to the figures.
for line in sys.stdin:
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/packet_sender.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698