##// END OF EJS Templates
catapult: add a bit more documentation on how to use catapult tracing...
Kyle Lippincott -
r40526:c311424e default
parent child Browse files
Show More
@@ -6,6 +6,14 b''
6 # GNU General Public License version 2 or any later version.
6 # GNU General Public License version 2 or any later version.
7 """Tool read primitive events from a pipe to produce a catapult trace.
7 """Tool read primitive events from a pipe to produce a catapult trace.
8
8
9 Usage:
10 Terminal 1: $ catapipe.py /tmp/mypipe /tmp/trace.json
11 Terminal 2: $ HGCATAPULTSERVERPIPE=/tmp/mypipe hg root
12 <ctrl-c catapipe.py in Terminal 1>
13 $ catapult/tracing/bin/trace2html /tmp/trace.json # produce /tmp/trace.html
14 <open trace.html in your browser of choice; the WASD keys are very useful>
15 (catapult is located at https://github.com/catapult-project/catapult)
16
9 For now the event stream supports
17 For now the event stream supports
10
18
11 START $SESSIONID ...
19 START $SESSIONID ...
@@ -24,7 +32,7 b' run-tests.py.'
24
32
25 Typically you'll want to place the path to the named pipe in the
33 Typically you'll want to place the path to the named pipe in the
26 HGCATAPULTSERVERPIPE environment variable, which both run-tests and hg
34 HGCATAPULTSERVERPIPE environment variable, which both run-tests and hg
27 understand.
35 understand. To trace *only* run-tests, use HGTESTCATAPULTSERVERPIPE instead.
28 """
36 """
29 from __future__ import absolute_import, print_function
37 from __future__ import absolute_import, print_function
30
38
@@ -1084,6 +1084,7 b' class Test(unittest.TestCase):'
1084 env["HGENCODINGMODE"] = "strict"
1084 env["HGENCODINGMODE"] = "strict"
1085 env["HGHOSTNAME"] = "test-hostname"
1085 env["HGHOSTNAME"] = "test-hostname"
1086 env['HGIPV6'] = str(int(self._useipv6))
1086 env['HGIPV6'] = str(int(self._useipv6))
1087 # See contrib/catapipe.py for how to use this functionality.
1087 if 'HGTESTCATAPULTSERVERPIPE' not in env:
1088 if 'HGTESTCATAPULTSERVERPIPE' not in env:
1088 # If we don't have HGTESTCATAPULTSERVERPIPE explicitly set, pull the
1089 # If we don't have HGTESTCATAPULTSERVERPIPE explicitly set, pull the
1089 # non-test one in as a default, otherwise set to devnull
1090 # non-test one in as a default, otherwise set to devnull
General Comments 0
You need to be logged in to leave comments. Login now