Create a Performance Explorer (PEX) definition that specifies:
- A user-defined name
- Type of data collection
- Job name
- Series of system events that you would like to collect system information
about
Note: A PEX definition of *STATS is preferable to a *TRACE definition
if the output that you want is the java_g -prof type, and
you know the specific job name of the Java program.
Here is an example
of a *STATS definition:
ADDPEXDFN DFN(YOURDFN) JOB(*ALL/YOURID/QJVACMDSRV) DTAORG(*HIER)
TEXT('your stats definition')
This *STATS definition does
not get all Java events running. Only the Java events
that are in your own Java session are profiled. This mode of
operation may increase the time that it takes to run the Java program.
Here is an example of a *TRACE definition:
ADDPEXDFN DFN(YOURDFN) TYPE(*TRACE) JOB(*ALL) TRCTYPE(*SLTEVT)
SLTEVT(*YES) PGMEVT(*JVAENTRY *JVAEXIT)
This *TRACE definition
collects any Java entry event and exit event from any Java program
in the system that you create with ENBPFRCOL(*ENTRYEXIT). This causes the
analysis of this type of collection to be slower than a *STATS trace, depending
on how many Java program events you have and the duration of the
PEX data collection.