🌳 Call Tree
The Call Tree helps efficiently visualize and navigate the call stack in Salesforce Apex debug logs. Learn to expand and collapse method calls, sort and filter by execution metrics, and quickly jump to code locations in Visual Studio Code. Enhance your Salesforce debugging and performance analysis with detailed insights into DML, SOQL, and execution times.

Each row shows its category, details such as method signature, self and total time as well as aggregated DML, SOQL, Throws and Row counts. The USER_INFO line shows as a row, and flow names drop the FLOW_START_INTERVIEWS : and WF_CRITERIA : prefixes.
View Modes
The Call Tree supports three separate views, toggled via the toolbar:
- Time Order (default) Displays the call stack in chronological execution order. Best when you want to follow the exact sequence of events from top to bottom.
- Aggregated Groups repeated method paths so repeated executions are combined. Best when you want a condensed hotspot view without reviewing every individual frame occurrence.
- Bottom-Up Starts with each callee as the root and expands into callers. In this view, roots are callees and expanded rows are caller context. Best when you want to find which methods are hogging the most time and see the different caller paths that led to them. Group the roots by Namespace, Caller Namespace or Type from the Group By dropdown.

Go to Code
Clicking the link in the event column will open the corresponding file and line, if that file exists in the current workspace.
Sort
Each column can be sorted by clicking the column header, this will sort the rows within the tree structure e.g sorting by self time will sort the children within a parent with the largest self time to the top but only within that parent.
Expand and Collapse
The expand button in the toolbar opens the tree one level per click. When every row is open, the button changes to collapse. It then closes the deepest open level per click, until every row is closed. A row you open or close yourself stays as it is until the button gets to its level.
The arrow next to the button opens a menu with Expand All and Collapse All. These open or close the whole tree, groups included.
Column Views
Switch column sets from the Columns button in the toolbar (or the header right-click menu):
- General - everyday overview: DML/SOQL counts + rows, throws, and total/self time.
- Time - call count and self/total/average time.
- Governor Limits - DML/SOQL/SOSL counts + rows, each seen and used, throws, heap peak, and governor limit usage (avg + peak). See Seen and used.
- Database - DML/SOQL/SOSL counts + rows, with total/self time to show which query-heavy path is slow.
- Memory - heap net (retained), gross (churn) and peak live heap, each total + self.
Show or hide individual columns from the same menu; an edited view shows a reset icon. Choices persist per view. Type (the raw log event type) is hidden by default in every view and can be turned on here - names read better without it, but it sorts, groups and exports like any other column.
The view you switch to is remembered, so the tables reopen the way you left them.
Columns fit their content and fill the table. To change this, open the Columns button or the header right-click menu and choose Autosize Column, Autosize All Columns or Reset Column Widths. This works in every table.
Heap analysis
The Memory view carries three heap metrics per call path - net (retained), gross (churn) and peak (highest live heap) - each with a total and self variant. See Governor limits + heap for how to read them together.
Filtering
- Details - off by default, which hides details such as debug lines and variables. Methods, queries and DML always show, even with 0 time. Exceptions and limit usage show in Time Order and Aggregated, and in Bottom-Up only with Details on.
- Debug Only - show only debug statements (Time Order and Aggregated).
- Type - keep a single event type (Time Order and Aggregated). Picking a type that shows only with Details turns Details on. Picking a type that does not turns it off again, unless Details was on already.
- Namespace - keep one or more namespaces from the dropdown.
- Total Time / Self Time - set a min-max range.
SOQL Formatting
SOQL and SOSL query rows are reformatted onto multiple lines and syntax highlighted, so keywords, fields and bind variables are easy to read at a glance. Find searches the query as shown, and a space in the search also matches a line break.

Keyboard Navigation
The Call Tree can be navigated with the keyboard. The up and down keys will move between rows. Right opens a closed row and left closes an open one. On an open row, right moves to its first child. On a closed row, left moves to its parent. Home and End go to the first and last row. Every table works with a screen reader.
Copy
Use Copy to Clipboard or Export to CSV above the table, or click a row, then press CMD / CTRL + c to copy the table, in every view. The copy holds the shown columns, tab-separated, so it pastes into a spreadsheet. It holds every row that passes the filters, children included, open or not.
The copy holds the values, not the display: a query as the log has it, on one line, and Gov Avg % and Gov Peak % in full.
When rows have children, the copy starts with a Level column. A top-level row is 1, its children are 2, and so on. In Bottom-Up with a group, the group is 1.
Inspect a row
Selecting a row fills the inspector with that call path - its governor metrics, the stack that led to it, and a call tree scoped to just that row, which you can read in Time Order, Aggregated or Bottom-Up independently of the tab's own view mode.
Category Coloring
Every row has a category, debug lines and variables included. Visualforce continuation frames show as System. The Name column is colored by each event's category - Apex, Code Unit, System, Automation, DML, SOQL, Callout and Validation - using the colors of the active timeline theme, so the Call Tree and the Timeline themes stay visually consistent.
By default a small color chip is shown against each row. To color the full cell instead (background tint and colored text), enable Settings → Apex Log Analyzer → Colorize Call Tree category names.
Colors follow the active timeline theme and update instantly when you switch themes via Log: Timeline Theme.