Use the Memory Usage view to display thread’s chunk usage, stack/heap usage, or both, of the profiled software running on a device. The graph portion of the Memory Usage view shows the amount of memory used along the same time interval as the thread load. A list of each thread or process appears at the bottom of the view showing the chunks, stack/heap, and total memory for each thread. In addition, if library events have been constructed into the imported PIProfiler data file, additional information is displayed for those, see Library events information below.
Data in the Memory Usage view is layered with the stack/heap data overlaying the chunk data. Stack/heap data is represented by the color blue, while chunk data is represented by gold. The display is different depending upon the view option selected in the Title bar drop-down menu, show in Figure 1, or in the Investigator menu > Memory Graph Menu .
Figure 1. Memory Usage Title bar drop-down menu
According to the selection, the graph displays the following (Figure 2):
When both are selected for display and the amounts are also equal, only a blue box will appear in the view. If the amounts are not equal, the chunk data is shown as a gold box and the stack/heap data is shown as a blue line.
Additionally, a black line indicating the total memory usage is available. The line is always displayed by default, but you can choose to hide or show the line by either right-clicking on the graph and selecting Show Total Memory Usage, or by selecting Investigator -> Memory Graph -> Show Total Memory Usage .
NOTE The Memory Usage view is synchronized with the Thread Load view along the horizontal axis.
Figure 2. Memory Usage graph and thread list
Description of table columns (Figure 2):
Columns may be reordered, resized, and sorted by clicking or dragging column headers.
If the imported .dat file from Profiler includes library event data, additional information is displayed in the Memory Usage graph, and a separate table is included for Library Events information below the graph, see Figure 3 below.
Figure 2. Memory Usage graph with library events information
In the Memory Usage graph:
The Library Events table lists all the libraries for which data is available. The following columns are included:
Related references