Complete the following steps to start profiling a Mosel model:
In the Run Configurations drop-down list, select the Mosel source file that you want to profile.
Click Run Tools (the fourth button to the right of the Run Configurations drop-down list).
In the menu that appears, click Show Run Dialog.
In the Run Model dialog box, set the Run Mode field to Profile the Model.
Click Run.
When the model has finished running, a file with the extension .prof is written into the same directory as the source file. You can double-click a row in the table jump to the line in the source file.
Note: If the source has been updated since the
.mos.prof file was created, it may take longer to go to the correct line.
Each line in this file contains:
Line number
The number of times the corresponding statement has been executed.
The total amount of time (in seconds) spent on this particular line (this measure is not valid if the statement is a recursive call).
The elapsed time (in seconds) between the beginning of the execution and the last time the line was executed (the line number, then the first three columns before the Mosel source).
The profiler table can be sorted by clicking on column header.
Note: If the model runs additional submodels via
mmjobs, the
.prof files are written similarly to the way the main model is written.