ANTS Performance Profiler - 5.0

ANTS Performance Profiler

Learning ANTS Performance Profiler - 5.0

Working with source code

When you select a method in the results pane and source code is available for that method, the code is displayed in the source-code pane with the first line of the method body highlighted.

sourcecodepane

If you used the most detailed profiling mode for your profiling session, Line-level ... (most detail), line-level timings are shown for each line of code (as well as average time and hit count).

Navigating through source code

You can navigate through the source code for a particular file in several ways:

  • To jump directly to lines of code that accounted for the most execution time, use the heat map alongside the vertical scroll bar. Colored bars indicate the location of the slowest lines of code in the source-code file:

sourcecodeheatmap

Click a bar to jump to the relevant line. The heat map is not available if you did not collect line-level timings.

  • To jump directly to a particular method, select the method from the list directly above the source code. A colored bar against each method indicates the relative time spent within the method.
  • To jump between methods from within the source code, click the method call. This click-through navigation works for most method calls where the called method has source code available.
  • Use the forward sourcecodeforward and back sourcecodeback history buttons.

You can also create a new call graph from within the source-code pane: right-click the method that you want to base the call graph on, and select Draw Call Graph > <method name>.

See also

Working with the call graph

Was this article helpful?

Search support
Forums

ANTS Performance Profiler

all products