[LLVMdev] Number of instructions executed

"C. Bergström" cbergstrom at pathscale.com
Sun Jan 26 06:59:25 PST 2014


On 01/26/14 09:40 PM, Sara Elshobaky wrote:
>
> Hello,
>
> I’m executing my byte code program by the lli tool using mcjit.
>
> I need a way to find statistics about the number of instructions 
> executed for my program…
>
> The –stats option does not include this value, are there any other way 
> to know?
>
> I need this information to compare different versions of my bytecode 
> program.
>
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.



More information about the llvm-dev mailing list