VS2010下测试程序性能瓶颈

之前看到Qt的有个BUGreport

https://bugreports.qt-project.org/browse/QTBUG-13182

这个BUG是在windows下QFileDialog很慢,可能需要一分钟才能显示,原因有很多。很多大神很快就能检测出程序的瓶颈在哪里了,是在SetFileAttributes那里,开始我不知道网络上的大神怎么很快得出结论的,后来在stackoverflow搜索了一下,找到有很多性能测试工具。

VS2010是个强大的IDE,里面当然(理所应当)提供很多强大的辅助工具,比如我之前用的editbin等等。包括Spy++等。还有强大的性能瓶颈检测工具:

以下是工具的guideline:

http://msdn.microsoft.com/en-us/library/ms182372(v=vs.100).aspx

references:

http://stackoverflow.com/questions/1346207/qt-application-performance-vs-winapi-mfc-wtl

http://stackoverflow.com/questions/1515688/how-to-find-performance-bottlenecks-in-c-code

http://social.msdn.microsoft.com/Forums/en-US/0dc7ffaa-ee0d-4ccf-a7b4-03752e56babc/problems-getting-performance-counters-in-visual-studio-2010-ultimate-rc?forum=vstsprofiler

原文地址:https://www.cnblogs.com/foohack/p/3915066.html