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

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

Issue 2310063002: Improvements to UI to python event log analyzer tool. (Closed)
Patch Set: 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
Index: webrtc/tools/py_event_log_analyzer/misc.py
diff --git a/webrtc/tools/py_event_log_analyzer/misc.py b/webrtc/tools/py_event_log_analyzer/misc.py
index 50ac28e9aae7dd26472f30c376a208c25f218652..bd70b75caa0d970498def93c00b4d614e010c657 100644
--- a/webrtc/tools/py_event_log_analyzer/misc.py
+++ b/webrtc/tools/py_event_log_analyzer/misc.py
@@ -72,6 +72,14 @@ def unwrap(data, mod):
mod // 2) % mod - (mod // 2)
return lst
+
+def ssrc_directions(data_points):
+ ssrc_is_incoming = {}
+ for point in data_points:
+ ssrc_is_incoming[point.ssrc] = point.incoming
+ return ssrc_is_incoming
+
+
# Python 2/3-compatible input function
if sys.version_info[0] <= 2:
get_input = raw_input
« no previous file with comments | « no previous file | webrtc/tools/py_event_log_analyzer/pb_parse.py » ('j') | webrtc/tools/py_event_log_analyzer/pb_parse.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698