Call graph
A call graph is a directed graph representing possible or observed function, procedure, or method calls within a program.
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.
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
- graphkind of · A graph is a mathematical structure consisting of vertices and edges that connect pairs of vertices to represent relationships or connections.
- flame graphcontrasts with · 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.
- method invocation countmeasures · The number of times a method is called during program execution.
- overall execution timemeasures · Overall execution time is the elapsed duration of a specified program, operation, test, workload, or thread’s execution.
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.

