void ProfFinish(void) |
The ProfFinish function stops Microsoft Windows Profiler sampling and flushes the output buffer to disk.
This function has no parameters.
This function does not return a value.
If Profiler is running in 386 enhanced mode, the ProfFinish function also frees the buffer for system use.
For more information about using Profiler, see Microsoft Windows Programming Tools.
The following example uses the ProfFinish function to stop sampling and flush the output buffer during WM_DESTROY message processing:
case WM_DESTROY:
ProfFinish();
PostQuitMessage(0);
break;