The patch consists of the following two files.
save-gprof-patch.lsp
save-gprof.lsp
save-gprof.lsp
to build and use a profiling ACL2/GCL image.
(Minor point:) You should avoid running two different ACL2 processes with this same profiling image in the same directory, because the process ID is not used in generated TMP* filenames. If this is a hardship, just send a bug report to let us know.