C++ User's Guide

-p

Prepares object code to collect data for profiling with prof.

This option invokes a runtime recording mechanism that produces a mon.out file at normal termination.

See also

-xpg, analyzer(1) man page.