The compiler uses the full path to the source file for each routine to look up the profile summary information associated with that routine. By default, this prevents you from:
Using the profile summary file (.dpi) if you move your application sources.
Sharing the profile summary file with another user who is building identical application sources that are located in a different directory.
To enable the movement of application sources, as well as the sharing of profile summary files, use the profmerge with -src_old and -src_new options. For example:
prompt>profmerge -prof_dir c:/work -src_old c:/work/sources -src_new d:/project/src
The above command will read the c:/work/pgopti.dpi file. For each routine represented in the pgopti.dpi file, whose source path begins with the c:/work/sources prefix, profmerge replaces that prefix with d:/project/src. The c:/work/pgopti.dpi file is updated with the new source path information.
The following rules apply:
You can execute profmerge more than once on a given pgopti.dpi file. You may need to do this if the source files are located in multiple directories. For example:
profmerge -src_old "c:/program files" -src_new "e:/program files"
profmerge -src_old c:/proj/application -src_new d:/app
In the values specified for -src_old and -src_new, uppercase and lowercase characters are treated as identical. Likewise, forward slash (/) and backward slash (\) characters are treated as identical.
Because the source relocation feature of profmerge modifies the pgopti.dpi file, you may wish to make a backup copy of the file prior to performing the source relocation.