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.23.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.23.linux-x86_64.exe (66.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for calltree-0.23.tar.gz
Algorithm Hash digest
SHA256 4b9304f49e8feb6e1ad923870ac1e7019bf09bd2df22588d2253421d0e61d068
MD5 c5149de01c812073c1f0714c6cab2ebc
BLAKE2b-256 5c0b07128806dac634de72e0cc9aa9de4474c488c42d753a2aeca14784244b13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for calltree-0.23.linux-x86_64.exe
Algorithm Hash digest
SHA256 75f4e66b52538a6642baf77c0adf8821dd28184ffc29aa5fc15fcf0be277e64f
MD5 59b240f0a7ec790b47ff84b5d988bd49
BLAKE2b-256 ea80a454c91c5ec11bd32032b5318c36d2e487834b8b7c3a2bdf4e4afb8b3c8c

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