[LLVMdev] Number of instructions executed

JF Bastien jfb at google.com
Sun Jan 26 11:18:18 PST 2014


> I forget the name now, but there's an emulator which has this capability.
> There's also performance counters available on some platforms that may give
> you access to this. PAPI or perfmon2 may have this capability. I guess this
> may not be exactly what you want, but hopefully it helps.

Pin is probably the most straightforward way to obtain dynamic
instruction count on x86. Valgrind/QEMU/DynamoRIO all have that
capability, though I don't remember how easy it is to tease the
information out of each tool.



More information about the llvm-dev mailing list