LLVM-PROFGEN(1)

πŸŽ€ NAME πŸŽ€

Okay bestie, welcome to LLVM-PROFGEN(1) from the LLVM manual β€” this one is literally the LLVM SPGO profile generation tool, and it’s giving very specific sample-profiling energy. ✨

✨ SYNOPSIS ✨

llvm-profgen [commands] [options]

πŸ’– DESCRIPTION πŸ’–

The llvm-profgen utility generates a profile data file from given perf script data files for sample-based profile guided optimization(SPGO). That’s the whole vibe: you bring the perf script data, it brings the profile file. 🫢

🌸 COMMANDS 🌸

At least one of the following commands are required:

  • --perfscript=<string[,string,...]> β€” Path of perf-script trace created by Linux perf tool with script command(the raw perf.data should be profiled with -b).
  • --binary=<string[,string,...]> β€” Path of the input profiled binary files.
  • --output=<string> β€” Path of the output profile file.

πŸ¦‹ OPTIONS πŸ¦‹

llvm-profgen supports the following options:

  • --format=[text|binary|extbinary|compbinary|gcc] β€” Specify the format of the generated profile. Supported <format> are text, binary, extbinary, compbinary, gcc, see llvm-profdata for more descriptions of the format.
  • --show-mmap-events β€” Print mmap events.
  • --show-disassembly β€” Print disassembled code.
  • --x86-asm-syntax=[att|intel] β€” Specify whether to print assembly code in AT&T syntax (the default) or Intel syntax.

πŸ‘‘ AUTHOR πŸ‘‘

Maintained by the LLVM Team (https://llvm.org/). πŸ’…

2003-2023, LLVM Project


This page is rockin’ version 15, dated 2023-07-14, bestie πŸ’œ β€” and that’s the cute little sign-off from the LLVM-PROFGEN(1) footer, no cap. πŸŽ€

πŸ“¦ where this page comes from