Apex Log Analyzer for SalesforceApex Log Analyzer makes performance analysis of Salesforce debug logs much easier and quicker. Visualize code execution via a Flame chart and Call Tree, identify and resolve performance and SOQL/DML problems via Method and Database Analysis. WARNING
Installation | Usage | Features | Settings | Explore the Docs | Contributing | Contributors | License Installation
Pre-ReleaseClick Command Pallette
VSCode Marketplace
UsageStart the analysis either from a log you have already downloaded or by downloading a log from an org to view. On larger logs the analysis window make take a few seconds to appear. From an Open Log FileWith the
Download a log
Features
Timeline / Flame chartThe Timeline shows a visualization of code execution during a request’s execution. Each color represents a different Salesforce event type e.g DB, Method, SOQL etc. The length of a bar relates to realtime taken, a longer bar means that method took longer. Zoom + pan
Go to Call Tree
TooltipHovering over an element provides information on the item. If you click on an item it will take you to that row in the Call Tree. The tooltip provides the following information. Call TreeShows the call stack which can be expanded and collapsed. Clicking on a link will take you to that line in the class if it can be found in the current open project. Each row shows event type, details such as method signature, self and total time as well as aggregated DML, SOQL, Throws and Row counts. Go to CodeClicking the link in the event column will open the corresponding file and line, if that file exists in the current workspace. SortEach 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. Filtering
Keyboard NavigationThe Call Tree can be navigated with the keyboard. The up and down keys will move between rows, the left and right keys will expand and collapse a parent within the tree. AnalysisShow analysis of method calls by showing Self Time, Total Time, Count (number of times a method was called), name and type. Each column can be sorted ascending or descending by clicking the column header. SortBy default the Analysis table is sorted with the events that took the longest by Self Time at the top. Filtering
GroupThe rows can be grouped by Type or Namespace
Export to CSV + copy to clipboardClick the header menu, DatabaseShows the SOQL and DML that occurred the number of rows returned, the time taken and for SOQL the selectivity and number of aggregations. The Selectivity column will have a green tick if the query is selective, a red cross if it is not and will be blank if the selectivity could not be determine. Sorting on this column will sort the rows by relative query cost, this number can be seen by hovering the cell on the selectivity column. SortThe rows can be sorted ascending or descending by DML/SOQL, Row Count and Time Taken and by Selectivity and Aggregations on the SOQL table. By default the rows within each group are sorted descending with the rows that have the highest row count at the top. Row within each group can be sorted by clicking the column header, this will sort the rows ascending or descending. If the grouping is removed the sorting applies the same but across all rows instead of within each group. Filtering
GroupBy default rows are grouped by the SOQL/ DML text, grouping can be removed and the rows shows as a flat list using the Group by item in the header menu. The groups are default sorted with the groups with the most items at the top. SOQL Statements can also be grouped by package namespace including the default namespace DML / SOQL Call StackClicking a row will show the SOQL/DML call stack, clicking on a link will take you to where that SOQL/DML occurred in the call tree. SOQL AnalysisFor SOQL rows, to the right of the Call Stack is SOQL Analysis which shows information about SOQL performance for the given query and how to improve it. Export to CSV + copy to clipboardClick the header menu, SettingsTimeline color settingsThe default colors shown on the timeline can be changed in the VSCode settings. or settings.json
ContributingHelp us to make things better by Contributing ContributorsThanks to the everyone who has contributed ❤ 🙏 LicenseCopyright © Certinia Inc. All rights reserved. |