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. Please advice Thanks in advance Sara Elsohbaky -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140126/da86371e/attachment.html>
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.
> 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.
You can usually do this sort of things with the profiling library (profile_rt), but I don't know if it will work with MCJIT. A similar problem is solved here: http://fromhelloworld.wordpress.com/2011/10/12/intro-to-llvm/ -- Pablo Barrio Dpt. Electrical Engineering - Technical University of Madrid Office C-203 Avda. Complutense s/n, 28040 Madrid Tel. (+34) 915495700 ext. 4234 @: pbarrio at die.upm.es On 26/01/14 15:40, 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. > > Please advice > > Thanks in advance > > Sara Elsohbaky > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140129/3e920e23/attachment.html>