ANTS Performance Profiler - 7.4

ANTS Performance Profiler

Working with profiling results - ANTS Performance Profiler

Profiling results are shown:

  • After you click the StopProfilingbuttonsmall Stop Profiling button.
  • During profiling, when you select a period on the timeline; see Working with the timeline.

Initially, the profiling results are shown on the Call Tree.

The Call Tree

The Call Tree shows how long each method took to run, and how many times each method ran.

The data is shown hierarchically, so that methods run by another method are displayed as children of the parent method.

ANTS Performance Profiler highlights methods that took a long time to run as being Hot: hoticon.

If ANTS Performance Profiler detects that a method is a good candidate for optimization, it adds an orange asterisk (*) after the method name.

Methods for which you have source code are shown in bold. Click a bold method to display the source code with line-level timings (if line-level timings were selected during set-up). For more information, see Working with source code.

calltree2

For more information about the Call Tree, see Working with the call tree.

Methods Grid

The Methods Grid displays the same information as the Call Tree, but each method is shown only once (the execution time shown is the sum of each time the method is called).

The Methods Grid also does not show the hierarchy, nor the 'Hot' icon.

To switch to the Methods Grid, click the dropdown menu next to Show on the results toolbar and select Methods grid:

app_show_methodsgrid

To switch back to the Call Tree, click the dropdown menu and select Call tree.

Methods for which you have source code are shown in bold. Click a bold method to display the source code with line-level timings (if line-level timings were selected during set-up). For more information, see Working with source code.

methodsgrid2

For more information about the Methods Grid, see Working with the methods grid.

Call Graph

When you have identified a method that has an unexpectedly long Time With Children, switch to the Call Graph: select the method in the Call Tree or Methods Grid, then click the call graph icon showcallgraphsbutton beside the method name.

The Call Graph shows what proportion of selected method's total execution time was spent executing the children of that method. For example, in the Call Graph below, 71.7% of the execution time of Form1.cmdDraw_Click is spent executing the child method Algorithm.EvaluateUsingComplexNumbers.

callgraph2

For more information about the Call Graph, see Working with the call graph.

To switch back to the Call Tree or Methods grid, use the dropdown menu on the results toolbar:

app_toolbar_dropdown.

Use the Call Tree, Methods Grid and Call Graph in turn to identify slow-running methods that could be optimized.

See also

Setting up and running a profiling session

Was this article helpful?

Search support
Forums

ANTS Performance Profiler

all products