gecko/js/src/tracevis
David Mandelin 0fcb7aaa76 Bug 500857: show JIT reset events in tracevis, r=nnethercote
--HG--
extra : rebase_source : a9be775abf15badf980e3be3535e99b30ce5c235
2009-09-10 16:06:34 -07:00
..
acts.py Bug 500857: show JIT reset events in tracevis, r=nnethercote 2009-09-10 16:06:34 -07:00
binlog.py Bug 500857: show JIT reset events in tracevis, r=nnethercote 2009-09-10 16:06:34 -07:00
config.py
README Add some info on troubleshooting in the TraceVis README. 2009-07-07 12:31:09 +10:00
tree.py Added trace tree visualizer (bug 506714, r=gal). 2009-08-19 16:11:59 -07:00
vis.py Bug 500857: show JIT reset events in tracevis, r=nnethercote 2009-09-10 16:06:34 -07:00

This directory contains TraceVis scripts.


To use TraceVis:

- Currently it can only be used with the JavaScript shell 'js', not within
  Firefox.

- Configure using --enable-tracevis.

- If running your program from the command line, use the -T option, i.e.:

    js -j -T <tracevis-file> foo.js
  
- If running your programs within the interactive shell, use the
  startTraceVis() and stopTraceVis() functions to turn TraceVis recording on
  and off.  startTraceVis() takes an optional parameter which is the name of
  the file to write the TraceVis output to;  if unspecified, the name
  defaults to 'tracevis.dat' in the current directory.

- To view the recorded data in graphical form, run:

    python vis.py <tracevis-file> <png-file>

  The graph will be written to the file <png-file> in PNG format.

- To view some basic data about the recorded data, run:

    python binlog.py <tracevis-file>


Troubleshooting:

- If you get this message when running the python scripts:

    Traceback (most recent call last):
      File "vis.py", line 2, in <module>
        import Image, ImageDraw, ImageFont
        ImportError: No module named Image

  then you need to install libraries from
  http://www.pythonware.com/products/pil/.


TODO list:

- Make the Python scripts more robust, e.g. handle file opening failures
  gracefully.

- Make it usable within Firefox.