11.6. Profile-based Optimization

Profile-based optimization (PBO) is a technique for building an application where information gathered about its run-time behavior is used to generate better code on subsequent compilations. You first build a special executable containing instrumentation and then run it with a training workload to create a profile database. Then you build again using the profile database. The “training” workload used with PBO is very important. It should be some workload that stresses the common paths through the code, not the error cases. For example, an error regression test suite would not work well as a training workload.

PBO rearranges the position of procedures in memory based on actual execution profiles. It attempts to ...

Get HP-UX 11i Tuning and Performance now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.