From 25ab104acb762ed5c7fdeb56ef6286f47a0b812c Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Fri, 14 May 2004 18:03:22 +0000 Subject: [PATCH] This seems like as good a place as any to keep POD files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13569 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CommandGuide/llvm-prof.pod | 58 +++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 docs/CommandGuide/llvm-prof.pod diff --git a/docs/CommandGuide/llvm-prof.pod b/docs/CommandGuide/llvm-prof.pod new file mode 100644 index 00000000000..8a75753b2f3 --- /dev/null +++ b/docs/CommandGuide/llvm-prof.pod @@ -0,0 +1,58 @@ +=pod + +=head1 NAME + +llvm-prof + +=head1 SYNOPSIS + +llvm-prof [options] [bytecode file] [llvmprof.out] + +=head1 DESCRIPTION + +The B tool reads in an F file (which can +optionally use a specific file with the third program argument), a bytecode file +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 +script. This script automatically instruments a program, runs it with the JIT, +then runs B to format a report. To get more information about +F, execute it with the B<--help> option. + +=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 + +B returns 1 if it cannot load the bytecode file or the profile +information. Otherwise, it exits with zero. + +=head1 AUTHOR + +B is maintained by the LLVM Team (L). + +=cut + -- 2.34.1