Profiling a Simulation on Linux

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.

Note

Simulation executes considerably slower than a normal run. Prepare for long run-times or limit the simulation time in your .INI file. You do not need statistical convergence here, just run long enough that all the code paths are executed in your model.