我如何访问英特尔CPU计数器 [英] How can i access the Intel CPU Counter

查看:105
本文介绍了我如何访问英特尔CPU计数器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何小型工具可让我访问英特尔CPU计数器收集的数据(例如L1 / L2缓存未命中,分支预测失败...您知道现代Core2 CPU上有这些问题)。

Is there any small tool that gives me access to the data gathered by the Intel CPU Counters (like L1/L2 cache misses, branch prediction failures ... you know there are hunderts of them on modern Core2 CPU's).

它必须在Windows上运行(同时能够与Solaris,FreeBSD,Linux,MacOSX一起使用当然会很好)。

It must work on Windows (while being able to use it with Solaris, FreeBSD, Linux, MacOSX would of course be nice).

推荐答案

检查出完全符合您想要的功能的Intel PCM(性能计数器监视器)工具。

Check out the Intel PCM (Performance Counter Monitor) tool which does exactly what you want to do.

链接: https://software.intel.com/zh-cn/articles/intel-performance-counter-monitor-a-better-way-to-measure-cpu-utilization

Intel PCM提供了丰富的API,可让您检测代码。此外,迄今为止,PCM也是读取非核心事件的唯一工具。

Intel PCM provides a rich API that allows you to instrument your code. Furthermore, to date, PCM is the only tool to read uncore events too.

这篇关于我如何访问英特尔CPU计数器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆