Sections
Timeline
Browse Source
New Ticket
Sub-Sections
Download
Comma-delimited Text
Tab-delimited Text
RSS Feed
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

Ticket #10 (closed enhancement: fixed)

Opened 15 months ago

Last modified 14 months ago

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

Changed 14 months ago by gak

  • status changed from new to closed
  • resolution set to fixed

Add/Change #10 (pycallgraph as a script)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.