Skip to main content

Show Callgraph from cscope database

Project description


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

********
calltree
********

Show Callgraph of a given function

=======
Purpose
=======
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.

=====
Usage
=====

Command Line
------------

Usage: python -m calltree [options] functionname

Options:
--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
-f OUTPUTFORMAT, --format=OUTPUTFORMAT
output format jpg/png
-o OUTPUTDIR, --outputdir=OUTPUTDIR
Storage directory for output files
-d SOURCEDB, --db=SOURCEDB
cscope database (cscope.out)

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

Project details


Download files

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

Source Distribution

calltree-0.26.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

calltree-0.26.linux-x86_64.exe (66.7 kB view details)

Uploaded Source

File details

Details for the file calltree-0.26.tar.gz.

File metadata

  • Download URL: calltree-0.26.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for calltree-0.26.tar.gz
Algorithm Hash digest
SHA256 40a166e743b8c42c88f617b8c1e6740a2a8c9bbfd76063d733960afe9144b545
MD5 372c0d5edfe71e8d789df8f9dd52b478
BLAKE2b-256 017076c09f86117b518299d3496c2366fd7ed035ac8bb7b843f413bf058bd70d

See more details on using hashes here.

File details

Details for the file calltree-0.26.linux-x86_64.exe.

File metadata

File hashes

Hashes for calltree-0.26.linux-x86_64.exe
Algorithm Hash digest
SHA256 bf78b181f624a145834504d8ed6550f96fa750788d8ef1a3db1d4fd33780421e
MD5 7afc7791e99a112534426a46b5ebfe7c
BLAKE2b-256 bf0baadb383375f9ef766814b77ff7240632b745103ec100f688709356cf52c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page