OS Manuals

/usr/bin/llvm-profdata

Swift is a high-performance system programming language. It has a clean and modern syntax, offers seamless access to existing C and Objective-C code and frameworks, and is memory-safe by default.

From swift 6.4.2-r0 (enterprise-packages), captured 2026-11-08 by running llvm-profdata --help (exit 0). permalink

OVERVIEW: LLVM profile data

USAGE: llvm-profdata [subcommand] [options]

SUBCOMMANDS:

  merge   - Takes several profiles and merge them together. See detailed documentation in https://llvm.org/docs/CommandGuide/llvm-profdata.html#profdata-merge
  order   - Reads temporal profiling traces from a profile and outputs a function order that reduces the number of page faults for those traces. See detailed documentation in https://llvm.org/docs/CommandGuide/llvm-profdata.html#profdata-order
  overlap - Computes and displays the overlap between two profiles. See detailed documentation in https://llvm.org/docs/CommandGuide/llvm-profdata.html#profdata-overlap
  show    - Takes a profile data file and displays the profiles. See detailed documentation in https://llvm.org/docs/CommandGuide/llvm-profdata.html#profdata-show

  Type "llvm-profdata <subcommand> --help" to get more help on a specific subcommand

OPTIONS:

Color Options:

  --color                             - Use colors in output (default=autodetect)

General options:

  --correlate=<value>                 - Use debug-info or binary correlation to correlate profiles with build id fetcher
    =<empty>                          -   No profile correlation
    =debug-info                       -   Use debug info to correlate
    =binary                           -   Use binary to correlate
  --debug-file-directory=<string>     - Directories to search for object files by build ID
  --disable-auto-upgrade-debug-info   - Disable autoupgrade of debug info
  --disable-i2p-p2i-opt               - Disables inttoptr/ptrtoint roundtrip optimization
  --enable-name-compression           - Enable name/filename string compression
  --enable-swifttailcc-musttail-check - Check that tail calls from swifttailcc functions to swifttailcc functions are marked musttail.
  --enable-vtable-profile-use         - If ThinLTO and WPD is enabled and this option is true, vtable profiles will be used by ICP pass for more efficient indirect call sequence. If false, type profiles won't be used.
  --enable-vtable-value-profiling     - If true, the virtual table address will be instrumented to know the types of a C++ pointer. The information is used in indirect call promotion to do selective vtable-based comparison.
  --generate-merged-base-profiles     - When generating nested context-sensitive profiles, always generate extra base profile for function with all its context profiles merged into it.

Generic Options:

  --help                              - Display available options (--help-hidden for more)
  --help-list                         - Display list of available options (--help-list-hidden for more)
  --version                           - Display the version of this program
Options (12)
OptionDescriptionSource
--color- Use colors in output (default=autodetect)help
--correlate value- Use debug-info or binary correlation to correlate profiles with build id fetcher =<empty> - No profile correlation =debug-info - Use debug info to correlate =binary - Use binary to correlatehelp
--debug-file-directory string- Directories to search for object files by build IDhelp
--disable-auto-upgrade-debug-info- Disable autoupgrade of debug infohelp
--disable-i2p-p2i-opt- Disables inttoptr/ptrtoint roundtrip optimizationhelp
--enable-name-compression- Enable name/filename string compressionhelp
--enable-vtable-profile-use- If ThinLTO and WPD is enabled and this option is true, vtable profiles will be used by ICP pass for more efficient indirect call sequence.help
--enable-vtable-value-profiling- If true, the virtual table address will be instrumented to know the types of a C++ pointer.help
--generate-merged-base-profiles- When generating nested context-sensitive profiles, always generate extra base profile for function with all its context profiles merged into it.help
--help- Display available options (--help-hidden for more)help
--help-list- Display list of available options (--help-list-hidden for more)help
--version- Display the version of this programhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.