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

前端 未结 2 868
南笙
南笙 2021-01-01 04:38

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

相关标签:
2条回答
  • 2021-01-01 05:15

    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)
    0 讨论(0)
  • 2021-01-01 05:19

    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.

    0 讨论(0)
提交回复
热议问题