Mercurial > hg
diff contrib/catapipe.py @ 40491:c311424ea579
catapult: add a bit more documentation on how to use catapult tracing
Differential Revision: https://phab.mercurial-scm.org/D5217
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Thu, 01 Nov 2018 16:51:21 -0700 |
parents | cb9b23ec093c |
children | ff562d711919 |
line wrap: on
line diff
--- a/contrib/catapipe.py Thu Nov 01 16:44:02 2018 -0700 +++ b/contrib/catapipe.py Thu Nov 01 16:51:21 2018 -0700 @@ -6,6 +6,14 @@ # GNU General Public License version 2 or any later version. """Tool read primitive events from a pipe to produce a catapult trace. +Usage: + Terminal 1: $ catapipe.py /tmp/mypipe /tmp/trace.json + Terminal 2: $ HGCATAPULTSERVERPIPE=/tmp/mypipe hg root + <ctrl-c catapipe.py in Terminal 1> + $ catapult/tracing/bin/trace2html /tmp/trace.json # produce /tmp/trace.html + <open trace.html in your browser of choice; the WASD keys are very useful> + (catapult is located at https://github.com/catapult-project/catapult) + For now the event stream supports START $SESSIONID ... @@ -24,7 +32,7 @@ Typically you'll want to place the path to the named pipe in the HGCATAPULTSERVERPIPE environment variable, which both run-tests and hg -understand. +understand. To trace *only* run-tests, use HGTESTCATAPULTSERVERPIPE instead. """ from __future__ import absolute_import, print_function