
As of Release 7.0 EHP2, the New ABAP Debugger offers a suite of three tools for analyzing memory use in a program that you are debugging.
These three tools are the following:
The Memory Analysis tool. This is the general purpose tool for memory analysis. You can see how much memory is in use, which objects are using the memory, and the containment hierarchy ( Dominator Tree) in the memory objects.
This tool is quite similar in its function set to the Memory Inspector. However, in the Debugger, you can also display the contents of memory objects. For example, you can see the lines in the body of an internal table.
From the Memory Analysis tool, you can create a
memory snapshot for later analysis in the Memory Inspector. Choose Create Memory Snapshot from the context menu or by choosing
. You can also start the Memory Inspector directly from the Debugger to compare memory snapshots.
The ABAP runtime does not run the ABAP Garbage Collector before starting the Memory Analysis tool. In this respect, the data that you see in the Memory Analysis tool differs from that in the Memory Inspector - before a memory snapshot is taken, the ABAP Garbage Collector discards dead objects.
You can explicitly start the ABAP Garbage Collector from the context menu in the Memory Analysis tool, or by choosing
.
The Application Specific Memory Views tool. Use this tool to display memory consumption in two special program contexts:
ABAP Web Dynpro applications
The Internet Communication Framework - in programs that use HTTP or Web Services implementations.
The Memory Object Explorer. Use this tool to navigate up and down the graph of memory objects in the internal session that you are debugging. You can see the relationships between objects and view the contents of memory objects as well.
Concepts and Background Information
You may wish to start with a review of the concepts underlying ABAP memory analysis. These concepts are the same whether you are working with the Memory Analyzer and related tools in the New ABAP Debugger or with the Memory Inspector (transaction S_MEMORY_INSPECTOR).