There are two user interfaces to the profiler mechanism. You can start and stop profiling in your application by using the following run-time-support calls.
- _TI_start_pprof_collection(): This
interface informs the run-time support that you
wish to start profiling collection from this point
on and causes the run-time support to clear all
profiling counters in the application (that is,
discard old counter values).
- _TI_stop_pprof_collection(): This
interface directs the run-time support to stop
profiling collection and output profiling data
into the output file (into the default file or one
specified by the TI_PROFDATA host environment
variable). The run-time support also disables any
further output of profile data into the output
file during exit(), unless you call
_TI_start_pprof_collection() again.