Oracle® Solaris Studio 12.4: Performance Analyzer

Exit Print View

Updated: January 2015

Collecting Data From a Running Process Using the collect Utility

On Oracle Solaris platforms only, the –P pid option can be used with the collect utility to attach to the process with the specified PID, and collect data from the process. The other options to the collect command are translated into a script for dbx, which is then invoked to collect the data. Only clock profile data (-p option) and hardware counter profile data (-h option) can be collected. Tracing data is not supported.

If you use the -h option without explicitly specifying a -p option, clock profiling is turned off. To collect both hardware counter data and clock data, you must specify both a -h option and a -p option.