2 <title>LLVM: llvm-prof tool</title>
6 <center><h1>LLVM: <tt>llvm-prof</tt> tool</h1></center>
13 <tt>llvm-prof [options] [bytecode file] [LLVM passes]</tt>
17 The <tt>llvm-prof</tt> tool reads in an '<tt>llvmprof.out</tt>' file, a bytecode
18 file for the program, and produces a human readable report, suitable for
19 determining where the program hotspots are.<p>
21 This program is often used in conjunction with the <tt>utils/profile.sh</tt>
22 script. This script automatically instruments a program, runs it with the JIT,
23 then runs <tt>llvm-prof</tt> to format a report. To get more information about
24 <tt>utils/profile.sh</tt>, execute it with the <tt>--help</tt> option.<p>
29 <li><tt>-annotated-llvm</tt> or <tt>-A</tt><br>
31 In addition to the normal report printed, print out the code for the
32 program, annotated we execution frequency information. This can be
33 particularly useful when trying to visualize how frequently basic blocks
34 are executed. This is most useful with basic block profiling
35 information or better.<p>
40 <tt>llvm-prof</tt> returns 1 if it cannot load the bytecode file or the profile
41 information, otherwise it exits with zero.
44 Maintained by the <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>.