Friday, May 30, 2014

How to use perf in vmware

The amazing Linux perf performance tool does not work as expected in a vmware guest:

A simple perf record command shows no output when displayed with perf report.

A workaround would be to use a non-hardware related event type for sampling with the command line switch -e.

But there is a much better solution (at least in vmware fusion 6): Enable virtualisation of performance counters:

The switch is the one with "Anwendungen mit Code-Profil".

No comments:

Post a Comment