Skip to main content

Show Callgraph from cscope database

Project description

.. sectnum::
.. contents:: Table Of Contents


Show Callgraph of a given function

The understanding of the codeflow in a larger source of codebase, requires to list the caller and callee relationships for a given function. For linux and unix developers, cscope has been the primary utitlity to search and browse through the code.

This utility uses the generated cscope database to list and display the
callgraph, which is stored in a image format.


Command Line

Usage: python -m calltree [options] functionname

--version show program's version number and exit
-h, --help show this help message and exit
--everything Recursively show all callers and callees
-a, --showall Show all callers and callees
-c, --callers Recursively show all callers
-e, --callees Recursively show all callees
-l LEVEL, --level=LEVEL
Show Level of callers/callees
output format jpg/png
Storage directory for output files
cscope database (cscope.out)

.. code-block::
import calltree
f = calltree.calltree.calltree()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for calltree, version 0.26
Filename, size File type Python version Upload date Hashes
Filename, size calltree-0.26.linux-x86_64.exe (66.7 kB) File type Windows Installer Python version any Upload date Hashes View
Filename, size calltree-0.26.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page