Project:VisualEditor testing/Test

Memory Usage Information

Ideas and Methods
We need information about the used memory (virtual and physical memory).

Virtual Memory
We analyze process's dynamic memory. It was done by intercepting the calls to malloc and free. However this information says nothing about how much of the virtual memory is being used by memory mapping.

Physical Memory
Physical memory consumption by tracking the resident set size is a little better. Unfortunately RSS doesn't distinguish between memory that is shared and memory that is not.

How to Display Memory Usage Information
The information may be written to the DLT log file or processed in near real time by TempoGiusto.

DLT Log Files
The information can be viewed within the DLT Viewer.

TempoGiusto
The information can be graphically represented in TempoGiusto.

How to Get Memory Usage Information
This section outlines important settings which may vary between target platforms. The settings are divided into two groups: platform independent and platform specific.

Platform Independent Settings
The navigation.ini file contains in the memory section several relevant parameter that need to be configured:


 * monitor=true|false
 * turn the memory usage monitor on or off


 * period=
 * update period in ms to take the memory usage snapshots
 * default value is 10000 ms

Platform Specific Settings
The functionality has been tested on Windows and Linux platform.