Apex Log Analyzer for SalesforceApex Log Analyzer makes performance analysis of Salesforce debug logs much easier and quicker. It provides visualization of code execution via a Flame chart and Calltree and helps identify performance and SOQL/DML problems via Method and Database Analysis. WARNING
Installation
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
FeaturesTimeline / 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 e.g a longer bar means that method took longer.
Hovering over an element provides information on the item. If you click on an item it will take you to the call navigatable stack view. The tooltip provides the following information. Color settingsThe default colors shown on the timeline can be changed in the VSCode settings. or settings.json
CalltreeShows 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 line number. AnalysisShow analysis on method calls. The table can be sorted ascending or descending by Self Time, Total Time, Count (number of times a method was called) and name. DatabaseShows the SOQL and DML that occured the number of rows returned, the time taken and for SOQL the selectivity and number of aggregations. Clicking a row will show the SOQL/DML call stack, clicking on a link will take you to where that SOQL/DML occured in the call tree. The tables can be sorted ascending or descending by DML/SOQL, Row Count and Time Taken and by Selectivity and Aggregations on the SOQL table. 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. By 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. ContributingHelp us to make things better by Contributing Contributors ❤ 🙏Thanks to the everyone who has contributed Copyright © Certinia Inc. All rights reserved. |