'How can I get application's usage of graphics card through winapi?

there is a problem with me that I want to get some application's usage of graphics card, like frame rate, rending time per frame , caton rate ...

I want to use some windows api in my code to get it ,but I do not know how.

Thanks a lot.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source