You can collect performance data in either the standalone Performance Analyzer or the Analyzer window in the IDE in several ways:
Using the collect command from the command line (see Collecting Data Using the collect Command and the collect(1) man page). The collect command-line tool has smaller data collection overheads than dbx so this method can be superior to the others.
Using the Performance Tools Collect dialog in the Performance Analyzer (see “Collecting Performance Data Using the Performance Tools Collector” in the Performance Analyzer online help).
Using the Collector dialog in the Debugger (see “Collecting Performance Data Using the Debugger” in the Performance Analyzer online help).
Using the collector command from the dbx command line (see Collecting Data Using the dbx collector Subcommands and “collector Command” in the Debugging online help in the IDE).
The following data collection capabilities are available only with the Performance Tools Collect dialog and the collect command:
Collecting data on Java programs. If you try to collect data on a Java program with Collector Dialog in the Debugger in the IDE or with the collector command in dbx, the information that is collected is for the JVM software, not the Java program.
Collecting data automatically on descendant processes.