Show TOC

Using the Memory Analysis Tool in the New ABAP DebuggerLocate this document in the navigation structure

Use

The Memory Analysis tool is the general-purpose tool for analyzing memory use in a program that you are debugging in the New ABAP Debugger. The Memory Analysis tool offers three separate tools:

  • Memory Sizes for an overview of memory use in the internal session which you are debugging.

    You must choose Determine Values to have the debugger calculate the memory sizes for the overview.

    More information : See Understanding the Memory Inspector Overview. The memory sizes presented are the same as those in the Memory Inspector.

  • The Dominator Tree view for seeing the containment hierarchy in memory objects, that is, which objects count toward the bound memory of other more superior objects.

    More information: See Understanding the Dominator Tree. The Dominator Tree displays the same information as the Dominator Tree view in the Memory Inspector.

  • The Memory Objects view for seeing several different types of ranked lists of objects by size. By choosing from the View field options, you can display the following lists of objects:

    • Memory Objects: A ranked list of memory objects by size. You can quickly see which objects are using memory and how much memory they are using.

      More information: See Understanding the Ranking Lists. The memory size statistics displayed in Memory Objects are the same as those displayed in the Ranking List in the Memory Inspector.

    • Types: Presents a ranked list of ABAP class objects and anonymous data objects by type definition. For example, you can quickly see the aggregate memory use of all instances of a certain local or global ABAP class.

      More information: See Understanding the Ranking Lists. The Types display presents the same data as the Ranking List by Type in the Memory Inspector.

    • Aggregates (Cycles): Adds strongly connected components (SCCs) to the list of memory objects. Look for the SCC icon Object Cycle in the list to find the object cycles.

      More information: See Understanding the Object Cycles View. The Aggregates (Cycles) display presents the same information as the Object Cycles view in the Memory Inspector.

    From Memory Objects, you can also display the contents of memory objects. Simply double-click on the item in the list of memory objects. For example, you can display the lines in the body of a table or the attributes of an ABAP class object.

Starting the Memory Analysis Tool

To start the Memory Analysis tool from the initial screen of the New ABAP Debugger, do the following:

  1. From the tool bar at the right side of one of the debugger windows, choose Replace Tool.

  2. In the popup which follows, open Memory Management.

  3. Choose Memory Analysis.

    Note

    You can also display the bound memory and object memory sizes of an entity in a program directly from the Variable Fast Display. Just choose the Memory Analysis tab. Then double-click on the tables, strings, or other entities whose memory use you want to see. For more memory analysis functionality, you still need to switch to the Memory Analysis tool.