Profiling with -Xeprof

[Back]

The HotSpot virtual machine for HP-UX SDK for Java 2 platform, release 1.2.2.05 or greater, or 1.3 beta2 or greater, supports -Xeprof. To profile your application use the following command:
  java -Xeprof:<options> ApplicationClassName

To profile your applet, use:
  appletviewer -J-Xeprof:<options> URL

where <options> is a list of <key>[=<value>] arguments separated by commas.

After the profiled applet or application normally terminates execution, the Java Virtual Machine writes the profile data to a file in the current directory.

We have found the following options useful in most cases:

  1. For CPU time metrics with minimal intrusion:
    -Xeprof      or
    -Xeprof:ie=no
  2. Exact call count information and object creation profiling:
    -Xeprof:inlining=disable      or
    -Xint -Xeprof

To see the complete list of available options, use
  java -Xeprof:help

Here are the supported -Xeprof options:

[Back]