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

Side by Side Diff: webrtc/rtc_tools/network_tester/parse_packet_log.py

Issue 2965593002: Move webrtc/{tools => rtc_tools} (Closed)
Patch Set: Adding back root changes Created 3 years, 5 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
OLDNEW
1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 # To run this script please copy "out/<build_name>/pyproto/webrtc/tools/ 9 # To run this script please copy "out/<build_name>/pyproto/webrtc/rtc_tools/
10 # network_tester/network_tester_packet_pb2.py" next to this script. 10 # network_tester/network_tester_packet_pb2.py" next to this script.
11 # The you can run this script with: 11 # The you can run this script with:
12 # "python parse_packet_log.py -f packet_log.dat" 12 # "python parse_packet_log.py -f packet_log.dat"
13 # for more information call: 13 # for more information call:
14 # "python parse_packet_log.py --help" 14 # "python parse_packet_log.py --help"
15 15
16 from optparse import OptionParser 16 from optparse import OptionParser
17 import struct 17 import struct
18 18
19 import matplotlib.pyplot as plt 19 import matplotlib.pyplot as plt
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 plt.xlabel('time [sec]') 138 plt.xlabel('time [sec]')
139 CreateSendTimeDiffPlot(packets, plots[0]) 139 CreateSendTimeDiffPlot(packets, plots[0])
140 CreateReceiveBiratePlot(packets, plots[1]) 140 CreateReceiveBiratePlot(packets, plots[1])
141 CreatePacketlossPlot(packets, plots[2]) 141 CreatePacketlossPlot(packets, plots[2])
142 f.subplots_adjust(hspace=0.3) 142 f.subplots_adjust(hspace=0.3)
143 plt.show() 143 plt.show()
144 144
145 145
146 if __name__ == "__main__": 146 if __name__ == "__main__":
147 main() 147 main()
OLDNEW
« no previous file with comments | « webrtc/rtc_tools/network_tester/packet_sender.cc ('k') | webrtc/rtc_tools/network_tester/server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698