性能测试

一.使用VS自带的性能测试工具进行分析

教程:analyzingapplication performance by using profiling tolls

应该使用带有调试信息的release版进行profileprofiledebug or release build?

1.      ProfilingFAQ #4: The top sampled function is [ntdll.dll], now what I do?!

如果想要获取系统dll的调试信息,在VS IDE->Tools->options->Debugging->symbols勾选上microsoftsymbol serves.如下图所示:


2.      使用VS IDE的profiler工具时,在使用Analyze->launch performance wizard设置好后,再使用Analyze->profile->startprofiling,这时候VS提示”injection of runtime library failed”。这个问题的解决办法可见:VS2010中的profile(性能剖析)

二.使用VS自动的代码分析工具分析应用程序的质量

教程:analyzingapplication quality by using code analysis tools

Code analysis forc/c++ overview

>the c/c++ code analysis tool providesinformation to developers about possible defects in their c/c++ source code. Commoncoding errors reported by the tool include buffer overruns, un-initializedmemory, null pointer dereferences, and memory and resource leaks.

三.在linux环境下使用grpof工具进行性能测试

Gprof tutorial – howto use linux gnu gcc profiling tool.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值