Skip to main content

.. 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()

Metadata

Release files for calltree 0.26

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for calltree 0.26
File Size Uploaded
calltree-0.26.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for calltree 0.26
File Interpreter ABI Platform
calltree-0.26.linux-x86_64.exe Details

Total release size: 71.5 kB

Release files / calltree-0.26.tar.gz

Download URL calltree-0.26.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
40a166e743b8c42c88f617b8c1e6740a2a8c9bbfd76063d733960afe9144b545
BLAKE2b-256 checksum
How to use checksums
017076c09f86117b518299d3496c2366fd7ed035ac8bb7b843f413bf058bd70d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / calltree-0.26.linux-x86_64.exe

Download URL calltree-0.26.linux-x86_64.exe
Size 66.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bf78b181f624a145834504d8ed6550f96fa750788d8ef1a3db1d4fd33780421e
BLAKE2b-256 checksum
How to use checksums
bf0baadb383375f9ef766814b77ff7240632b745103ec100f688709356cf52c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.26 This release

2 release files

0.25

2 release files

0.24

2 release files

0.23

2 release files

0.22

2 release files

0.21

1 release file

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page