mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-21 11:10:12 +00:00
1b53f6f486
llvm-svn: 9755
53 lines
1.6 KiB
HTML
53 lines
1.6 KiB
HTML
<html>
|
|
<title>LLVM: llvm-prof tool</title>
|
|
|
|
<body bgcolor=white>
|
|
|
|
<center><h1>LLVM: <tt>llvm-prof</tt> tool</h1></center>
|
|
<HR>
|
|
|
|
<h3>NAME</h3>
|
|
<tt>llvm-prof</tt>
|
|
|
|
<h3>SYNOPSIS</h3>
|
|
<tt>llvm-prof [options] [bytecode file] [LLVM passes]</tt>
|
|
|
|
<h3>DESCRIPTION</h3>
|
|
|
|
The <tt>llvm-prof</tt> tool reads in an '<tt>llvmprof.out</tt>' file, a bytecode
|
|
file for the program, and produces a human readable report, suitable for
|
|
determining where the program hotspots are.<p>
|
|
|
|
This program is often used in conjunction with the <tt>utils/profile.sh</tt>
|
|
script. This script automatically instruments a program, runs it with the JIT,
|
|
then runs <tt>llvm-prof</tt> to format a report. To get more information about
|
|
<tt>utils/profile.sh</tt>, execute it with the <tt>--help</tt> option.<p>
|
|
|
|
<h3>OPTIONS</h3>
|
|
|
|
<ul>
|
|
<li><tt>--annotated-llvm</tt> or <tt>-A</tt><br>
|
|
|
|
In addition to the normal report printed, print out the code for the
|
|
program, annotated we 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.<p>
|
|
|
|
<li><tt>--print-all-code</tt><br>
|
|
|
|
Using this option enables the <tt>--annotated-llvm</tt> option, but it
|
|
prints the entire module, instead of just the most commonly executed
|
|
functions.<p>
|
|
</ul>
|
|
|
|
<h3>EXIT STATUS</h3>
|
|
|
|
<tt>llvm-prof</tt> returns 1 if it cannot load the bytecode file or the profile
|
|
information, otherwise it exits with zero.
|
|
|
|
<HR>
|
|
Maintained by the <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>.
|
|
</body>
|
|
</html>
|