Tools
Apex debug log analyzer
Paste or drop a debug log. See what ran, how long it took, which queries repeated and how close the transaction got to the governor limits.
Apex debug log
Runs in your browser. Your log is never uploaded or stored.
What is a debug log?
Every Apex transaction can write a line-by-line trace: each trigger, method call, SOQL query, DML statement,System.debug, exception and governor-limit snapshot, stamped to the nanosecond. It is the closest thing Salesforce has to a profiler, and also one of the harder things to read at 50,000 lines.
Get one
- Setup → Debug Logs → New, pick a user and a debug level (FINEST on Apex Code is noisy;
DEBUGis plenty). - Reproduce the action in the org.
- Open the log and use Download, or copy the text.
- From a terminal:
sf apex tail log --color, orsf apex get log --number 1.
What you get here
- Totals for SOQL, DML, CPU, heap, callouts and exceptions
- Governor-limit bars (amber from 80%)
- A zoomable flame chart of code units, methods, queries and DML
- Flags for SOQL or DML in loops, near-limit usage and fatal errors
No log to hand? Use Load sample log. It is synthetic.
Governor limits
Timeline
Hover a bar for details, click to select, double-click to zoom in.
Built with the Salesforce Lightning Design System. Not affiliated with Salesforce.