<DIV>Thanks for the reply :-)</DIV>
<DIV> </DIV>
<DIV>I am actually looking for ways to determine "size" of code segment when the program is in native code.</DIV>
<DIV> </DIV>
<DIV>Any suggestions to do that ?<BR></DIV>
<DIV>Tanu</DIV>
<DIV><BR><B><I>Chris Lattner <sabre@nondot.org></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Fri, 25 Feb 2005, Tanu Sharma wrote:<BR><BR>><BR>> Hey,<BR>><BR>> I have written a pass and wishes to measure its performance overhead <BR>> after running it over a program.I also wish to measure the size of code <BR>> segment once the program is in native code.What are the easy ways in <BR>> llvm to achieve this?Are there any tools available in llvm for the same<BR><BR>I'm not sure specifically what you want, but you should just be able to <BR>compile the program with and without your pass (e.g. you could add it to <BR>gccas/ld and add an option to enable or disable it). Compile it both ways <BR>and compare the results?<BR><BR>> ?What exactly is this llvm-prof ?<BR><BR>llvm-prof is an interface to the a basic block, edge, and function <BR>profiler. llvm-prof is just a front-end that formats profile data for <BR>human consumption. If you look at the
 llvm/utils/profile.pl, you can play <BR>around with it.<BR><BR>-Chris<BR><BR>-- <BR>http://nondot.org/sabre/<BR>http://llvm.cs.uiuc.edu/<BR><BR>_______________________________________________<BR>LLVM Developers mailing list<BR>LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu<BR>http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev<BR></BLOCKQUOTE><p>
                <hr size=1>Do you Yahoo!?<br> 
Yahoo! Mail - Find what you need with new enhanced search. <a href="http://us.rd.yahoo.com/evt=29917/*http://info.mail.yahoo.com/mail_250">Learn more.</a>