🕸️Call Graph
Also known as Call Hierarchy, Caller Graph, Function Call Graph
A map of which functions call which, drawn as dots and arrows.
Think of it like
It is like a phone tree. It shows who calls whom, and who they call next.
Example
Lucy opens the call hierarchy for parseDate. It shows two callers. Above them is the checkout function that calls both.
Why it matters
It shows how far a change spreads. It also finds functions that nothing calls at all.
Definition
Common mistake
Key takeaways
- 1Arrow means calls. From the caller to the callee.
- 2Look forward. See what a function needs.
- 3Look back. See who needs it.