HP Fortran Programmer's Guide (B3908-90031; September 2011)

Performance and optimization
Using profilers
Chapter 6 147
1. Compile the program with the +prof option. For example:
$ f90 -o prog +prof prog.f90
2. Run the program. This creates a file named mon.out in the current directory. For example:
$ prog
$ ls mon.out
mon.out
3. Run prof, giving the name of the program as an argument, as follows:
$ prof prog
prof produces a listing on standard output showing the time spent in each routine.
For more information about prof, see the prof(1) man page.