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 Sun Studio Collect dialog box in the Performance Analyzer (see “Collecting Performance Data Using the Sun Studio Collect Dialog Box” in the Performance Analyzer online help).
Using the Project Properties dialog box in the IDE (see “Collecting Performance Data Using the IDE” in the Performance Analyzer online help).
Using the collector command from the dbx command line (see Collecting Data Using the dbx collector Subcommands.
The following data collection capabilities are available only with the Sun Studio Collect dialog box 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.