第3天下午IntelVtune.ppt

  1. 1、本文档共47页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
第3天下午IntelVtune

Intel Vtune介绍 资料来自Intel软件学院 1 2 本节课的目标 了解Intel Vtune性能分析器的使用方法 用Intel Vtune来寻找应用程序热点 Intel Vtune介绍 3 4 VTune™ 帮助用户发现应用程序中的热点和潜在的性能问题 采用多种方法收集性能数据 从多个层面,采用交互式的方式,组织和显示性能数据 帮助分析性能问题并提供改进建议 必威体育精装版的版本9.0 Where in an application or system there is a significant amount of activity 5 何谓热点? Where = address in memory = OS process = OS thread = executable file or module = user function (requires symbols) = line of source code (requires symbols with line numbers) or processor (assembly) instruction Significant = activity that occurs infrequently probably does not have much impact on system performance Activity = time spent or other internal processor event Examples of other events: Cache misses, branch mispredictions, floating-point instructions retired … 本地性能数据采集与显示 先采集后显示 支持IA-32和Itanium处理器家族 支持Windows,RH Linux和SuSE Linux 对于其他操作系统版本的支持详见Release Notes或联机帮助 与Visual Studio环境集成 6 使用方式(1) 7 使用方式(2) Host System Windows* operating system Controls target View results of data collection Target System IA-32 or Itanium® processor family Windows or Linux* Intel® PXA2xx processors running Windows CE* LAN Connection 远程数据采集与本地显示 Intel Vtune介绍 8 9 Sampling: 用统计方法发现热点 怎么做的? 周期性地中断处理器 系统级采样 做了什么?收集执行上下文 Execution address in memory (CS:IP) Operating system process and thread ID Executable module loaded at that address If you have symbols for the module, post-processing can identify the function or method at the memory address. Line numbers from the symbol file can direct you to the relevant line of source code 10 两种性能数据采集方式 基于时间的采样 (TBS) 由操作系统时钟和指定数量的clockticks触发 获得程序行为在时间上的分布 随时间变化的性能特性 分析线程程序的执行行为 11 两种性能数据采集方式 基于事件的采样 (EBS) 由处理器计数器溢出触发 大量的处理器事件可供采集 L2 cache misses branch mispredictions floating-point instructions retired … 采用项目组织的方式来组织数据 13 Sampling Collects System-wide Performance Data VTune™ Analyzer Features and Usage Models 14 Sampling Over Time Views Show How Sampling Data Changes Over Time VTune™ Analyzer Features and Usage Models 15 Sampling Source View Displays Source Code Annota

文档评论(0)

qwd513620855 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档