The PerfUtil Java API provides a rich set of functionality, all available to Java applications.
The API is provided in named package jperf. The jperf package is distributed as JPerf.jar
in the tools' bin directory.
In order to (re)compile/run your application you must do the following:
Import either the entire package or the required classes:
import jperf.*;
import jperf.PerfCounter.*;
Add the jperf package jar filename to the CLASSPATH, for example:
SET CLASSPATH=D:\ibmperf\bin\JPerf.jar;%CLASSPATH%
All "constants" (i.e., static data members) are part of the JPerf class.
Take a look at JPerfBase.java in the tools' src directory.
(Re)compile the application.
Run the application. Just remember that JPerf.jar must be included in the CLASSPATH.
Generic class which provides most of the native methods as well as all constants
(i.e., static final data members) used by all the classes in the jperf package.