is there a windows equivalent of the linux command “perf stat”?

瘦欲@ 提交于 2019-12-21 02:57:29

问题


is there a windows equivalent of the linux command "perf stat"? For example to see frontend stalls, cache misses and other performance counter data?


回答1:


perf is Linux-only profiler capable to access hardware event counters (cache miss, cpu stalls, etc). This profiler supports many CPUs, but can't be used in MS Windows.

For Windows you may try profilers from your CPU vendor:

  • VTune from/for Intel ($$$)
  • CodeAnalyst/CodeXL from/for AMD (free)
  • Intel PCM from/for Intel (free) - https://software.intel.com/en-us/articles/intel-performance-counter-monitor (needs some compilation with DDK kit to get msr.dll driver and pcm.exe tool)
  • Visual Studio Profiler from Microsoft (part of Studio, some counters for several CPUs) - https://msdn.microsoft.com/en-us/library/bb385772.aspx "CPU Counters", "Portable Events", VSPerfCmd/VSPerfMon command line tool (it may be wrong with some events on recent CPUs)



回答2:


Some people who find this question might be actually looking for xperf, or the new ETW stuff which is replacing it which could be downloaded here.



来源:https://stackoverflow.com/questions/34641644/is-there-a-windows-equivalent-of-the-linux-command-perf-stat

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!