liveBook · Manning

Call graph

A call graph is a directed graph representing possible or observed function, procedure, or method calls within a program.

How 2 Manning books explain it

Grokking Simplicity

A graph representation in which program entities are connected according to which functions or procedures call which others.

How it is used
Guides abstraction-layer design by revealing how functions depend on one another and where implementations mix levels of detail.
How deep it goes
Builds graphs from function calls, examines global, layer, and function views, and uses arrow patterns to diagnose design problems.
Examples
Uses JavaScript shopping-cart functions such as freeTieClip, isInCart, add_item, and remove_item_by_name.
What you can do after
Diagnose/debug with it by locating mixed abstraction levels and choosing functions to extract or inspect more closely.

Read how Grokking Simplicity explains call graph →

Troubleshooting Java: Read, debug, and optimize JVM applications

A visual representation of execution data that shows relationships between objects and method calls.

How it is used
Uses profiler data to reveal object and method relationships and clarify an application's class design during unfamiliar-code investigations.
How deep it goes
Traces callers and callees through the execution chain and includes timing and invocation counts, while still requiring code inspection.
Examples
Profiles a request to the /products endpoint, then opens a call graph from a selected stack-trace line in JProfiler.
What you can do after
Apply it via JProfiler to navigate method relationships, inspect timing and invocation counts, and form an initial picture of application design.

Read how Troubleshooting Java: Read, debug, and optimize JVM applications explains call graph →

Related concepts

Questions about call graph

What is call graph?

A call graph is a directed graph representing possible or observed function, procedure, or method calls within a program.

Which Manning books explain call graph?

Grokking Simplicity and Troubleshooting Java: Read, debug, and optimize JVM applications.

What is the difference between call graph and flame graph?

A call graph is a directed graph representing possible or observed function, procedure, or method calls within a program. A flame graph is a hierarchical visualization of call-stack data in which nested horizontal regions represent stack depth and widths indicate aggregated execution time or resource consumption.

What is call graph a kind of?

Call graph is a kind of graph. A graph is a mathematical structure consisting of vertices and edges that connect pairs of vertices to represent relationships or connections.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.