Before you begin to profile, your application should run without memory errors. You can use the IDE tools to find memory errors. For information about these tools, see Finding memory errors and leaks.
You can perform heap memory profiling to achieve two goals: performance improvements (because heap memory allocation/deallocation is one of the most expensive ways of obtaining memory), and heap memory optimization. The QNX Momentics Memory Analysis tool can assist you with both of these goals.