1LLVM-PROF(1) LLVM Command Guide LLVM-PROF(1)
2
3
4
6 llvm-prof - print execution profile of LLVM program
7
9 llvm-prof [options] [bitcode file] [llvmprof.out]
10
12 The llvm-prof tool reads in an llvmprof.out file (which can optionally
13 use a specific file with the third program argument), a bitcode file
14 for the program, and produces a human readable report, suitable for
15 determining where the program hotspots are.
16
17 This program is often used in conjunction with the utils/profile.pl
18 script. This script automatically instruments a program, runs it with
19 the JIT, then runs llvm-prof to format a report. To get more
20 information about utils/profile.pl, execute it with the -help option.
21
23 --annotated-llvm or -A
24 In addition to the normal report printed, print out the code for
25 the program, annotated with execution frequency information. This
26 can be particularly useful when trying to visualize how frequently
27 basic blocks are executed. This is most useful with basic block
28 profiling information or better.
29
30 --print-all-code
31 Using this option enables the --annotated-llvm option, but it
32 prints the entire module, instead of just the most commonly
33 executed functions.
34
35 --time-passes
36 Record the amount of time needed for each pass and print it to
37 standard error.
38
40 llvm-prof returns 1 if it cannot load the bitcode file or the profile
41 information. Otherwise, it exits with zero.
42
44 llvm-prof is maintained by the LLVM Team (<http://llvm.org>).
45
46
47
48CVS 2010-05-07 LLVM-PROF(1)