Sun Studio 12 Update 1: Performance Analyzer

-P process_id

Write a script for dbx to attach to the process with the given process_id, collect data from it, and then invoke dbx on the script. You can specify only profiling data, not tracing data, and timed runs (-t option) are not supported.