IDXGISwapChain::GetFrameStatistics method (dxgi.h)
Gets performance statistics about the last render frame.
HRESULT GetFrameStatistics( [out] DXGI_FRAME_STATISTICS *pStats );
A pointer to a DXGI_FRAME_STATISTICS structure for the frame statistics.
Returns one of the DXGI_ERROR values.
You cannot use GetFrameStatistics for swap chains that both use the bit-block transfer (bitblt) presentation model and draw in windowed mode.
You can only use GetFrameStatistics for swap chains that either use the flip presentation model or draw in full-screen mode. You set the DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL value in the SwapEffect member of the DXGI_SWAP_CHAIN_DESC1 structure to specify that the swap chain uses the flip presentation model.
Statistics are not reliable in many multiple monitor scenarios, as well as scenarios where other fullscreen apps are running.