1 llvm-profdata - Profile data tool
2 =================================
7 :program:`llvm-profdata` *command* [*args...*]
12 The :program:`llvm-profdata` tool is a small utility for working with profile
18 * :ref:`merge <profdata-merge>`
19 * :ref:`show <profdata-show>`
21 .. program:: llvm-profdata merge
31 :program:`llvm-profdata merge` [*options*] [*filenames...*]
36 :program:`llvm-profdata merge` takes several profile data files
37 generated by PGO instrumentation and merges them together into a single
38 indexed profile data file.
45 Print a summary of command line options.
47 .. option:: -output=output, -o=output
49 Specify the output file name. *Output* cannot be ``-`` as the resulting
50 indexed profile data can't be written to standard output.
52 .. program:: llvm-profdata show
62 :program:`llvm-profdata show` [*options*] [*filename*]
67 :program:`llvm-profdata show` takes a profile data file and displays the
68 information about the profile counters for this file and
69 for any of the specified function(s).
71 If *filename* is omitted or is ``-``, then **llvm-profdata show** reads its
72 input from standard input.
77 .. option:: -all-functions
79 Print details for every function.
83 Print the counter values for the displayed functions.
85 .. option:: -function=string
87 Print details for a function if the function's name contains the given string.
91 Print a summary of command line options.
93 .. option:: -output=output, -o=output
95 Specify the output file name. If *output* is ``-`` or it isn't specified,
96 then the output is sent to standard output.
101 :program:`llvm-profdata` returns 1 if the command is omitted or is invalid,
102 if it cannot read input files, or if there is a mismatch between their data.