Sun WorkShop Compiler C 5.0 User's Guide

-p

Prepares the object code to collect data for profiling with prof(1). This option invokes a runtime recording mechanism that produces a mon.out file at normal termination.