监视图形卡使用情况 [英] Monitor the Graphics card usage
问题描述
在运行某个应用程序时,如何监视使用了多少图形卡?我想看看我的应用程序使用了多少GPU.
How can I monitor how much of the graphics card is used when I run a certain application? I want to see how much my application uses the GPU.
推荐答案
如果使用Visual Studio 2013和2015版本进行开发,则可以使用其GPU使用工具:
If you develop in Visual Studio 2013 and 2015 versions, you can use their GPU Usage tool:
-
Visual Studio中的
- GPU使用工具(视频) https://www.youtube.com/看吗?v = Gjc5bPXGkTE
- GPU使用情况Visual Studio 2015 https://msdn.microsoft.com/zh-cn/library/mt126195.aspx Visual Studio 2013 Update 4 CTP1中的
- GPU使用工具(博客) http://blogs.msdn.com/b/ianhu/archive/2014/12/16/gpu-usage-for-directx-in-visual-studio.aspx
- GPU Usage Tool in Visual Studio (video) https://www.youtube.com/watch?v=Gjc5bPXGkTE
- GPU Usage Visual Studio 2015 https://msdn.microsoft.com/en-us/library/mt126195.aspx
- GPU Usage tool in Visual Studio 2013 Update 4 CTP1 (blog) http://blogs.msdn.com/b/vcblog/archive/2014/09/05/gpu-usage-tool-in-visual-studio-2013-update-4-ctp1.aspx
- GPU Usage for DirectX in Visual Studio (blog) http://blogs.msdn.com/b/ianhu/archive/2014/12/16/gpu-usage-for-directx-in-visual-studio.aspx
MSDN的屏幕截图:
Screenshot from MSDN:
此外,似乎您可以用它诊断任何应用程序,不仅是Visual Studio项目:
Moreover, it seems you can diagnose any application with it, not only Visual Studio Projects:
除了Visual Studio项目之外,您还可以在任何闲置的.exe应用程序上收集GPU使用情况数据.只需在Visual Studio中打开可执行文件作为解决方案,然后启动诊断会话,即可将其与GPU的使用作为目标.这样,如果您使用某种类型的引擎或替代开发环境,只要最终获得可执行文件,您仍然可以在其上收集数据.
In addition to Visual Studio projects you can also collect GPU usage data on any loose .exe applications that you have sitting around. Just open the executable as a solution in Visual Studio and then start up a diagnostics session and you can target it with GPU usage. This way if you are using some type of engine or alternative development environment you can still collect data on it as long as you end up with an executable.
来源: http://blogs.msdn.com/b/ianhu/archive/2014/12/16/gpu-usage-for-directx-in-visual-studio.aspx
这篇关于监视图形卡使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!