Debugging Dynamic Memory Usage Errors Using HP WDB (5900-1474; WDB 6.2; January 2011)

Figure 3 Incremental Heap Profile Summary
Arena Profiling Using WDB GUI
HP WDB GUI 5.7 and later versions provide support to view the arena information for
a program running on HP-UX 11i v3.
To view the arena information, complete the following steps:
1. Load the program to HP WDB GUI.
2. Stop the program execution at the required breakpoints.
3. Select View->Memory Usage->Heap Arena to view the arena information. The arena
information is displayed in the View Heap Arena window.
The following information is displayed in the View Heap Arena window:
Arenas
The Arena IDs are listed in the Arenas list menu. Select the required Arena ID from
the Arenas list menu to view Arena ID Summary, or Block Details for the selected
arena.
Arena ID Summary
The summary information for the selected Arena ID is displayed in the Arena ID
Summary frame.
Block Details
To view the block level details in an arena, select Block Details after selecting the
required Arena ID in the Arenas list menu. The block distribution in the arena is
displayed in the Arenas Block Distribution window.
84