Show TOC

Analyzing Trace Events in the Aggregated Call TreeLocate this document in the navigation structure

You can use the Aggregated Call Tree to analyze trace events that are aggregated to call stacks and displayed within a call tree.

Prerequisites

  • You have created an ABAP trace of your program. The ABAP trace has the status Finished.
  • The ABAP trace is not aggregated by Call Position. More on this: Aggregation Options in ABAP Traces

Context

Remember, the Call Sequence tool provides you with a time sequence of trace events as a hierarchical tree. By contrast, the Aggregated Call Tree shows the trace events in an aggregated form. In the latter case, the trace events are aggregated By Call Stack and displayed in a tree hierarchy.

Aggregation By Call Stack means that the runtime data of the multiple executions that occurred via the same call path (the same caller) is added up to a single trace event entry. In the results display of the Aggregated Call Tree, the Executions column displays how many trace events were aggregated in a single trace event entry.

EXAMPLE

Imagine a class with methods M1, M2, and M3. Now imagine a program PROG that calls M1 twice from the same call position. The first call of M1 implies also the call of method M2. Finally, M2 is called through the method M3, as shown in the figure below.

In the Aggregated Call Tree, the ABAP Profiler creates a single trace entry for M1. The Executions column has the value 2. Due to the fact that both calls to M1 occurred via the same call path, the ABAP Profiler aggregates the two calls to M1. The number of Executions indicates that two executions of method M1 have been added up.

Trace events in the Call Sequence and in the Aggregated Call Tree
Figure 1: Trace events in the Call Sequence and in the Aggregated Call Tree

Use the Aggregated Call Tree to perform tasks such as the following:

  • Analyze all usages of a procedure (such as a method) - how many executions of a method occur via a particular call path?
  • Analyze how many executions of specific events occur with the same call stack.
  • Analyze which specific statements are executed and how often within a procedure, and which call stacks occurred for outgoing calls of the procedure.

Procedure

  1. To open the Aggregated Call Tree, select the relevant trace in the Start of the navigation path ABAP Traces End of the navigation path view and choose Show Aggregated Call Tree from the context menu.
    Note Alternatively, double-click the trace in the ABAP Traces view to open the Overview page of the trace and then choose the Aggregated Call Tree tab.
  2. Expand the call tree and identify those trace events within the tree display that you want to analyze in more detail. You can pay special attention to the Executions and Total Time columns. See also: Understanding Parameters in Aggregated Call Tree and Call Sequence
    Trace Parameters in the Aggregated Call Tree
    Figure 2: Trace Parameters in the Aggregated Call Tree