[LLVMdev] Number of instructions executed

Pablo Barrio pbarrio at die.upm.es
Wed Jan 29 02:07:52 PST 2014


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>


More information about the llvm-dev mailing list