# Dumping and Resetting Profile Information

The _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.

Syntax
`void _PGOPTI_Prof_Dump_And_Reset(void);`

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.

## Recommended Usage

Periodic calls to this function enables a non-terminating application to generate one or more profile information files (.dyn files). 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.

Parent topic: PGO API Support