On Linux systems, the OMNeT++ IDE supports executing your simulation using the valgrind program. Running your program with valgrind allows you to find memory-related issues and programming errors in your code. The simulation will run in an emulated environment (much slower than normal execution speeds), but valgrind will generate a detailed report when it finishes. The report is shown in a separate Valgrind View at the end of the simulation run. The OMNeT++ IDE contains support only for the memcheck tool. If you want to use other tools (cachegrind, callgrind, massif etc.), you may try to install the full 'Linux Tools Project' from the Eclipse Marketplace.
To start profiling, right-click on your project in the Project Explorer tree and select Profile As... | OMNeT++ Simulation. Valgrind must already be installed on your system.