Types of profiling

The QNX Application Profiler lets you perform:

Sampling doesn't require instrumentation, and has low overhead, but your application needs to run for a long time for you to get sound data.

Function Instrumentation requires a compiler flag and linker flag, and even more overhead.