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.22.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for calltree-0.22.tar.gz
Algorithm Hash digest
SHA256 c33bd9df5cefb7d3df0ccab09c8b34f01c59ebecd8cf37c4175fa13b1a50fcb2
MD5 a7c9b885d24e5b113bd853204a41a843
BLAKE2b-256 bb33c12da579cefd6e0a75bfee58686d65886527c4d855c773b7d1b9dcc9c1ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for calltree-0.22.linux-x86_64.exe
Algorithm Hash digest
SHA256 f622344bea7e4678bb692d0fcf82e1783e58f53c3de4851b1ea98cea1a688b7a
MD5 948c2c6a691a8421f66c37584070a085
BLAKE2b-256 627a9541a28be93ff2de25b60c7b82d601328d9a1b51b10e8ccc9a719c8edcf9

See more details on using hashes here.

Supported by

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