Running your application with Profiler produces profiling reports.
Having enabled Profiler forone or more projects in your solution, you need to execute the application with Profiler in order to generate the Profiler data.
If your application does not require Enterprise Server, to run it with Profiler:
- Ensure that
Enable profiler is checked in your project's properties.
- Click
Debug > Start With Micro Focus Profiler.
If you have not compiled your application with the latest changes, the IDE first rebuilds the project.
The IDE starts the application in debug mode.
Note: If Profiler is not checked in your project's properties, the IDE displays a warning that you need to do so from the project's properties. If you continue running the application without Profiler enabled for the project, no Profiler reports are produced.
- Step through your application in the usual manner.
When you have finished running the application or have finished debugging, stop the debugger. This causes Profiler to produce a
Report.prf files in the
Results directory specified in
Tools > Options > Micro Focus > Profiler > Report Generation.
If your application requires an enterprise server, to run it with Profiler:
- In the IDE, ensure that
Enable profiler is enabled in your project's properties.
- Right-click the server in Server Explorer and click
Start with Profiler.
- Execute your application in the usual manner.
- Right-click the server in Server Explorer and click
Stop and generate Profiler results.
This causes Profiler to produce a
Report.prf files in the
Results directory specified in
Tools > Options > Micro Focus > Profiler > Report Generation.
Viewing the Profiler reports
If specified in the IDE options, the Profiler report file,
Report.prf, automatically opens in the editor.
If the report file,
Report.prf, does not automatically open in the editor, to open, it click
,
Show Micro Focus Profiler Report in the COBOL toolbar.