Ticket #10 (closed enhancement: fixed)
pycallgraph as a script
| Reported by: | Alec Thomas <alec@…> | Owned by: | gak |
|---|---|---|---|
| Priority: | minor | Component: | general |
| Version: | Keywords: | ||
| Cc: |
Description
It would be useful to be able to use pycallgraph from the command line:
$ pycallgraph --include='genshi*' --output=test.png test.py
execfile() is the love you want:
#!/usr/bin/env python import sys import pycallgraph pycallgraph.start_trace(filter=pycallgraph.GlobbingFilter(include=['genshi*'])) execfile(sys.argv[1]) pycallgraph.make_dot_graph('test.png')
Attachments
Change History
Note: See
TracTickets for help on using
tickets.