OLD | NEW |
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 Loading... |
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() |
OLD | NEW |