2004-05-14 18:03:22 +00:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
2004-05-14 18:31:13 +00:00
|
|
|
llvm-prof - print execution profile of LLVM program
|
2004-05-14 18:03:22 +00:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2007-07-09 11:24:05 +00:00
|
|
|
B<llvm-prof> [I<options>] [I<bitcode file>] [I<llvmprof.out>]
|
2004-05-14 18:03:22 +00:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
The B<llvm-prof> tool reads in an F<llvmprof.out> file (which can
|
2007-07-09 11:24:05 +00:00
|
|
|
optionally use a specific file with the third program argument), a bitcode file
|
2004-05-14 18:03:22 +00:00
|
|
|
for the program, and produces a human readable report, suitable for determining
|
|
|
|
where the program hotspots are.
|
|
|
|
|
|
|
|
This program is often used in conjunction with the F<utils/profile.pl>
|
|
|
|
script. This script automatically instruments a program, runs it with the JIT,
|
|
|
|
then runs B<llvm-prof> to format a report. To get more information about
|
2010-02-18 14:08:13 +00:00
|
|
|
F<utils/profile.pl>, execute it with the B<-help> option.
|
2004-05-14 18:03:22 +00:00
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
|
|
|
=over
|
|
|
|
|
|
|
|
=item B<--annotated-llvm> or B<-A>
|
|
|
|
|
|
|
|
In addition to the normal report printed, print out the code for the
|
|
|
|
program, annotated with execution frequency information. This can be
|
|
|
|
particularly useful when trying to visualize how frequently basic blocks
|
|
|
|
are executed. This is most useful with basic block profiling
|
|
|
|
information or better.
|
|
|
|
|
|
|
|
=item B<--print-all-code>
|
|
|
|
|
|
|
|
Using this option enables the B<--annotated-llvm> option, but it
|
|
|
|
prints the entire module, instead of just the most commonly executed
|
|
|
|
functions.
|
|
|
|
|
|
|
|
=item B<--time-passes>
|
|
|
|
|
|
|
|
Record the amount of time needed for each pass and print it to standard
|
|
|
|
error.
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 EXIT STATUS
|
|
|
|
|
2007-07-09 11:24:05 +00:00
|
|
|
B<llvm-prof> returns 1 if it cannot load the bitcode file or the profile
|
2004-11-15 20:30:19 +00:00
|
|
|
information. Otherwise, it exits with zero.
|
2004-05-14 18:03:22 +00:00
|
|
|
|
|
|
|
=head1 AUTHOR
|
|
|
|
|
2011-04-09 02:13:37 +00:00
|
|
|
B<llvm-prof> is maintained by the LLVM Team (L<http://llvm.org/>).
|
2004-05-14 18:03:22 +00:00
|
|
|
|
|
|
|
=cut
|