Dumping and Resetting Profile
_PGOPTI_Prof_Dump_And_Reset()function dumps the profile information to a new .dyn file and then resets the dynamic profile counters. Then the execution of the instrumented application continues.
The prototype of the function call is listed below.
This function is used in non-terminating applications and may be called more than once. Each call will dump the profile information to a new .dyn file.
Periodic calls to this function enables a non-terminating application to generate one or more profile information files (
.dynfiles). These files are merged during the feedback phase of profile-guided optimizations. The direct use of this function enables your application to control precisely when the profile information is generated.