如何在DirectX中查询GPU使用情况?

Fre*_*adi 5 directx graphics direct3d

如何在DirectX中查询GPU使用情况?特别是DirectX 11.如果有人这样做过,你能提供我的代码片段吗?