ProfStart

3.0

  void ProfStart(void)    

The ProfStart function starts 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

ProfStop