Sections
Timeline
Browse Source
View Tickets
New Ticket
Sub-Sections
Start Page
Index
History
Last Change
Download
Plain Text
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

Installation

This applies to pycallgraph v0.5.0. To see other versions go here.

Requirements

You will need Graphviz installed and in your path. To see if it's installed and in your path, the command "dot" should work from the command line.

Installation

Python Call Graph works with Linux, Windows and Mac OS X. There are a few ways of installing it:

Windows

Setuptools

If you have setuptools installed, simply run the following:

easy_install pycallgraph

From Source

Extract one of the above, hop into the directory and run:

python setup.py install

Debian

Jan Michael Alonzo is maintaining a Debian package at (currently version 0.3.0):

FreeBSD

Li-Wen Hsu is maintaining a FreeBSD package on FreshPorts:

OpenSUSE

OpenSUSE has a python-pycallgraph package:

Subversion

svn co svn://slowchop.com/pycallgraph/trunk/

Older Releases

Now What?

Your can see if it is installed by running it on the command line:

pygc

You can also try to import it and check the version:

python
Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycallgraph
>>> pycallgraph.__version__
'0.5.0'
>>> 

There are some example uses here.