VC++ 性能分析工具
1. VS(2010及以上版本)自带的性能分析工具(Profile)
应用程序性能分析利器 --- VisualStudio Profiler
http://www.cnblogs.com/tankery/archive/2010/07/24/1784098.html
初探VS2010中的Profile(性能剖析)功能:
http://blog.csdn.net/hireboy/article/details/8961281
通过VS2010性能分析来查找代码中那些地方最损耗资源:
http://www.cnblogs.com/smark/archive/2011/10/12/2208039.html
2. vtune(跨平台分析工具,也可集成在VS上)
VTune工具使用心得:
http://qiusuoge.com/12069.html
Vtune 使用一 (初探): (系列)
http://blog.csdn.net/anialy/article/details/8149309
Intel VTune分析结果中的名词释译:
http://blog.chinaunix.net/uid-26000296-id-3369740.html
3. DEVPARTNER插件(可集成在VS上),也具有内存泄露检测功能
DevPartnerStudio Professional Edition 11 内存泄露检测使用:
http://blog.csdn.net/akof1314/article/details/8434499
测试工具DevPartner介绍:
http://www.docin.com/p-659626063.html
How To Resolve DevPartner Injector Errors:
解决Devpartner Injector Error, 例如(ErrorAlreadyExist)
How To Resolve DevPartner Injector Errors
Problem:
Erroneous Injector errors occur when profiling under ErrorDetection.
Solution:
1. Close all running instances of Visual Studio
2. Navigate to C:\Program Files (x86)\Common Files\Micro Focus\NMShared\Injector\2.xx (See fig 1)
3. Click on InjectorMonitor.exe
4. If the "Driver" is not started, start theDriver. Your driver is not started if the button is not"grayed out". In the image below, the driver isalready started (See fig 2)
5. Click Add Sample Entries (See fig 3)
6. Click Test injection
At this point Notepad should appear with a dialog box from theInjectorMonitor stating that injection was successful (See fig 4)
7. Restart Visual Studio and try to instrument your application again.
8. If errors still occur with injection, open a Support ticket andprovide screen shots of the error and a build log.
Note: If the injector was not installed (buttonnot grayed out) and you installed the driver as a result of step 3. Your registry will now contain the valid information required for the injectordriver to execute.
GCC C++ 性能分析工具(for linux)