Analyzing Memory Usage and Finding Memory Problems
QNX Momentics IDE lets you run Memory Analysis and several Valgrind (pronounced
val-grinned
) tools to find memory problems such as leaks and corruption, and to measure memory usage of programs.
It also provides the QNX System Information perspective so you can learn which processes are consuming memory or other
resources excessively.
- monitoring memory and resource consumption — you can view realtime data about memory usage for a system or a single process and about resource usage for a process; this feature helps you determine which processes should be further analyzed or optimized
- analyzing heap memory usage — you can see which areas of a program use the most dynamic (heap) memory, to learn which sections of code need to be optimized to improve performance
- finding memory corruption — you can find and fix the bad memory operations that cause a program to crash or behave improperly
- finding memory leaks — you can find and fix memory leaks, to improve an application's long-term stability and performance
The System Information data and the results from the runtime analysis tools can reveal many specific memory problems that you can fix as well as usage trends that suggest how you might optimize an application. You can export data from an analysis session to share results with other team members, who can then import them into their IDE. The import feature also supports postmortem analysis, in which you view analysis results for an application that was run outside of the IDE.