https://learn.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgiswapchain-getframestatistics?redirectedfrom=MSDN
IDXGISwapChain::GetFrameStatistics (dxgi.h) - Win32 apps | Microsoft Learn
Gets performance statistics about the last render frame.
dxgihappsmicrosoftlearn