Stops a programmatically controlled capture that was started with PIXBeginCapture.
HRESULT PIXEndCapture(
BOOL discard
)
discard
Type: BOOL
[in] Indicates whether the capture should be discarded:
The discard parameter is useful to throw away captures that didn’t meet the criteria you were looking for. For example, you can use PIXBeginCapture and PIXEndCapture to attempt to capture calls to a function that fall within a predefined time range. You may wish to only display captures for calls to a function that fall within that range.
Type: HRESULT
Indicates whether the capture complete successfully. S_OK is returned on success.
PIXBeginCapture(PIX_CAPTURE_CALLGRAPH, nullptr);
engine->Render();
BOOL discard = engine->frameNormal();
PIXEndCapture(discard);
Header: Declared in pix.h.
Library: Use PIXEvt.lib.