<div dir="ltr">Hi,<div><br></div><div>When merging is disabled, a possible solution is to unmap the mapped file region, copy the old profile file to the new file, and then mmap the CounterBegin to the new file region. Does this sound correct?</div><div>When merging is enabled, multiple profile files will be created. I'm not sure how to set the file object in this case as only one file descriptor is passed to __llvm_profile_set_file_object.</div><div><div><br></div><div>Zequan</div><div><br></div></div></div>