ProfStop

3.0

  void ProfStop(void)    

The ProfStop function stops Microsoft Windows Profiler sampling.

Parameters

This function has no parameters.

Return Value

This function does not return a value.

Comments

For more information about using Profiler, see Microsoft Windows Programming Tools.

Example

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();
}

See Also

ProfStart