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

Unified Diff: webrtc/tools/py_event_log_analyzer/rtp_analyzer.py

Issue 2310063002: Improvements to UI to python event log analyzer tool. (Closed)
Patch Set: Removed space. Created 4 years, 3 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/tools/py_event_log_analyzer/pb_parse.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/py_event_log_analyzer/rtp_analyzer.py
diff --git a/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py b/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py
index 1a9b695c3a7bf7dd282f9a17c244c3cddb01549a..c3374ca920194b00890d864115e492e3aad624f5 100644
--- a/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py
+++ b/webrtc/tools/py_event_log_analyzer/rtp_analyzer.py
@@ -94,13 +94,22 @@ class RTPStatistics(object):
self.print_ssrc_info("", chosen_ssrc)
return chosen_ssrc
- for (i, ssrc) in enumerate(self.ssrc_frequencies):
+ ssrc_is_incoming = misc.ssrc_directions(self.data_points)
+ incoming = [ssrc for ssrc in ssrc_is_incoming if ssrc_is_incoming[ssrc]]
+ outgoing = [ssrc for ssrc in ssrc_is_incoming if not ssrc_is_incoming[ssrc]]
+
+ print("\nIncoming:\n")
+ for (i, ssrc) in enumerate(incoming):
self.print_ssrc_info(i, ssrc)
+ print("\nOutgoing:\n")
+ for (i, ssrc) in enumerate(outgoing):
+ self.print_ssrc_info(i + len(incoming), ssrc)
+
while True:
chosen_index = int(misc.get_input("choose one> "))
if 0 <= chosen_index < len(self.ssrc_frequencies):
- return list(self.ssrc_frequencies)[chosen_index]
+ return (incoming + outgoing)[chosen_index]
else:
print("Invalid index!")
« no previous file with comments | « webrtc/tools/py_event_log_analyzer/pb_parse.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698