Intel VTune 入门(01)

最近有几个程序的性能很成问题,所以做了一些调试方面的工作,主要工具就是 Intel VTune Performance Analyzer。

VTune 的门槛比较高,上手很慢。摸索着用了用找了几本相关的书:










书还没买到,到网上找了找资料,看看帮助和示例,自己琢磨着用用。

1. 开始时运行小程序没有问题,但是一旦运行时间比较长的程序,程序就会自动退出
后来仔细看了一下 VTune 中的配置参数,在 Activity 的属性页中发现一个 Duration 参数,缺省是 20 秒,程序长于 20 秒就自动关闭了,呵呵:

Advanced Activity Configuration Dialog Box rel="StyleSheet" href="MSL_styl.css">

Duration

Enter the number of seconds that you want the Activity to run and collect data. The Duration value includes any delay time specified for a collector. By default, the duration is 20 seconds.

To proceed with data collection until the application terminates, specify a Duration value that is larger than or corresponds to the amount of time you estimate your application will run.

To continue data collection until you manually stop it by clicking Stop Activity , enter 0.


把它设置成 0 (需要手动停止收集数据) 或 长于你程序的执行时间就可以了
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值