PIX can analyze a program without the need to modify it. However, more powerful analysis is possible when you add one or more of the following function calls to the target program.
Function |
Description |
D3DPERF_BeginEvent |
Mark the beginning of a user-defined event. PIX can use this event to trigger an action. |
D3DPERF_EndEvent |
Mark the end of a user-defined event. PIX can use this event to trigger an action. |
D3DPERF_GetStatus |
Determine the state of the profiler from the target program. |
D3DPERF_QueryRepeatFrame |
Determine if a performance profiler is requesting that the current frame be resubmitted to Direct3D for performance analysis. This function is not currently implemented. |
D3DPERF_SetMarker |
Mark an instantaneous event. PIX can use this event to trigger an action. |
D3DPERF_SetOptions |
Set profiler options specified by the target program. |
D3DPERF_SetRegion |
Mark a series of frames with the specified color and name in the PIXRun file. This function is not currently implemented. |