Visual Studio 2008 查找耗时函数 C++ Profiler 性能 优化

用事实说话,C++ Profiler(Visual Studio 2008) (转)  

2011-06-07 12:31:02|  分类: c++深入研究|举报|字号 订阅

用事实说话,C++ ProfilerVisual Studio 2008

1、设置生成时启用C/C++代码分析,如果不设置此项,程序速度将出乎你的意料……

2、点击分析”->“启动性能向导

3、在性能资源管理器中右键新建的性能报告节点,右键启动并启用分析功能

虽然此处有启用分析功能,但如果在配置里面没有进行设置,第一次的测试报告结果将是不准确的。

4、选择两个性能报告(ctrl+鼠标),右键比较性能报告

用性能报告将有助于提高程序的性能,并且快速定位问题所在,剩下的结果就是你自己需要多观察,分析性能报告所反映的问题了。

更多

VC++ 6.0详见这里>> http://neural.cs.nthu.edu.tw/jang/mir/technicalDocument/vc6_profile/index.htm

第三方工具>> http://www.semdesigns.com/Products/Profilers/CppProfiler.html

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Visual Studio ProfilerVisual Studio中集成的性能分析工具。它可以帮助开发人员分析程序中各个函数调用所占用的时间,并生成简洁易读的报告。\[3\]它提供了两种检测方式:Sample和Instrumentation。Sample方式通过采样程序的执行状态来获取函数调用的信息,而Instrumentation方式则是在程序中插入额外的代码来记录函数调用的时间。这些信息可以帮助开发人员找到应用程序的瓶颈,优化性能。\[3\]要使用Visual Studio Profiler,需要安装Visual Studio的某些版本,如Team系列的VS或Ultimate版本。\[2\]如果你想了解更多关于Visual Studio Profiler的详细介绍和使用实例,可以参考微软MSDN杂志上的文章《Find Application Bottlenecks with Visual Studio Profiler》。\[1\] #### 引用[.reference_title] - *1* *2* [应用程序性能分析利器 —— Visual Studio Profiler](https://blog.csdn.net/weixin_30354675/article/details/96721714)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [使用Visual Studio Profiler分析程序性能](https://blog.csdn.net/huyiyang2010/article/details/5935522)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值