Using profmerge to Relocate the Source Files

The compiler uses the full path to the source file to look up profile summary information. By default, this prevents you from:

Source Relocation

To enable the movement of application sources, as well as the sharing of profile summary files, use profmerge with the -src_old and -src_new options. For example:

IA-32 Systems: prompt>profmerge -prof_dir <p1> -src_old <p2> -src_new <p3>

Itanium®-based Systems: prompt>profmerge -em -p64 -prof_dir <p1> -src_old <p2> -src_new <p3>

where:

The above command will read the pgopti.dpi file. For each function represented in the pgopti.dpi file, whose source path begins with the <p2> prefix, profmerge replaces that prefix with <p3>. The pgopti.dpi file is updated with the new source path information.

Notes

profmerge -prof_dir -src_old /src/prog_1 -src_new /src/prog_2

profmerge -prof_dir -src_old /proj_1 -src_new /proj_2