Profiling with -eprof

[Back]

JDK 1.1.8 for HP-UX introduces a new VM profiling option -eprof in addition to the standard profiling option -prof.

To profile your application use the following command:
  java -eprof ApplicationClassName
or
  java -eprof:<filename> ApplicationClassName

To profile your applet, use:
  appletviewer -J-eprof URL
or
  appletviewer -J-eprof:<filename> URL

After the profiled applet or application completes, the Java Virtual Machine writes the profile data to the specified file in the current directory. If a file name was not specified, java.eprof is used. The file format is different than that used by the -prof option.

The -eprof option uses tracing with reduction and collects a call graph with inclusive method clock times and method call counts, separately for each thread, throughout the execution time of the program.

The native threads version of the VM (for HP-UX 11.0) additionally collects inclusive method CPU times, and has much smaller intrusion than the VM for HP-UX 10.20.

[Back]