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

Side by Side Diff: tools/py_event_log_analyzer/README

Issue 1999113002: New rtc dump analyzing tool in Python (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated README to reflect changes in code. Created 4 years, 6 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
« no previous file with comments | « no previous file | tools/py_event_log_analyzer/misc.py » ('j') | tools/py_event_log_analyzer/misc.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 This file describes how to set up and use the RTP log analyzer.
2
3 Run the tool as follows:
4
5 python rtp_analyzer.py <rtc event log>
6
7 where <rtc event log> is a recorded RTC event log, which is stored in
8 protobuf format. Such logs are generated in multiple ways, e.g. by
9 Chrome through the chrome://webrtc-internals page.
10
11 The script has been tested to work in python versions 3.4.1 and 2.7.6,
12 but should work in all python versions for which there is a version
13 of the dependencies.
14
15 Dependencies
16 ------------
17
18 The analyzer script needs *numpy* (http://www.numpy.org/) and
19 *matplotlib* (http://matplotlib.org/).
20
21 When using python 2, the package *future*
22 (https://pypi.python.org/pypi/future) is needed. This package can be
23 installed through pip, (https://docs.python.org/2.7/installing/).
kwiberg-webrtc 2016/05/25 12:42:41 Hmm. You use very few things from this library---j
aleloi2 2016/05/30 14:57:55 Yes, I changed bultins.range to just 'range', whic
24
25 A version of Protocol Buffers is needed as well. One is distributed
26 along with WebRTC in `thirdparty/protobuf/python`. This tool also
27 needs a file `rtc_event_log_pb2.py` which is automatically generated
28 from `webrtc/call/rtc_event_log.proto` and placed in
29 `out/<TARGET>/pyproto/webrtc/call/` with every WebRTC compilation. To
30 use it, WebRTC needs to be compiled before using this tool.
31
32 An alternative to compiling WebRTC is to install your own version of
33 Protocol Buffers and `protoc`, the Protocol Buffer compiler.
34
35 If you use your own version of protobuf, generate the python file in
36 this folder with
37
38 protoc -I $WEBRTC_ROOT/webrtc/call $WEBRTC_ROOT/webrtc/call/rtc_event_log.pro to --python-out ./
39
OLDNEW
« no previous file with comments | « no previous file | tools/py_event_log_analyzer/misc.py » ('j') | tools/py_event_log_analyzer/misc.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698