void ProfStop(void) |
The ProfStop function stops Microsoft Windows Profiler sampling.
This function has no parameters.
This function does not return a value.
For more information about using Profiler, see Microsoft Windows Programming Tools.
The following example uses the ProfStart and ProfStop functions to sample during the message-queue dispatch process:
/* Acquire and dispatch messages until WM_QUIT is received. */
while (GetMessage(&msg, /* message structure */
(HWND) NULL, /* handle of window receiving message */
0, /* lowest message to examine */
0)) /* highest message to examine */
{
ProfStart();
TranslateMessage(&msg); /* translates virtual-key codes */
DispatchMessage(&msg); /* dispatches message to window */
ProfStop();
}