LLVM-PROFGEN(1)

πŸ“¦
version 12.0.1 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– LLVM-PROFGEN(1) πŸ’–

okay bestie, welcome to the llvm-profgen page β€” that's section 1 of the LLVM manual, and it's literally the LLVM SPGO profile generation tool. yes that's a lot of acronyms, we'll get there 🫢


✨ NAME ✨

llvm-profgen β€” LLVM SPGO profile generation tool

no cap, that's the whole name section, short and iconic πŸ‘‘


🌸 SYNOPSIS 🌸

llvm-profgen [commands] [options]

πŸ¦‹ DESCRIPTION πŸ¦‹

so 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 give it perf traces, it gives you a profile. slay πŸ’…


πŸŽ€ COMMANDS πŸŽ€

at least one of the following commands are required β€” so like, you gotta pick one, fr fr:

  • --perfscript=<string[,string,...]> β€” the path of the perf-script trace, created by the Linux perf tool with the script command. important: the raw perf.data should be profiled with -b. don't forget the -b, bestie, it matters 😭
  • --binary=<string[,string,...]> β€” the path of the input profiled binary files. yes, plural, you can comma-separate them πŸ’–
  • --output=<string> β€” the path of the output profile file. this is where your hard work lands ✨

🌈 OPTIONS 🌈

llvm-profgen supports the following options:

  • --format=[text|binary|extbinary|compbinary|gcc] β€” specify the format of the generated profile. the supported <format> values are text, binary, extbinary, compbinary, gcc β€” see llvm-profdata for more descriptions of the format. go read that one too, iykyk πŸ“š
  • --show-mmap-events β€” print mmap events. that's it. that's the whole thing πŸ”₯
  • --show-disassembly β€” print disassembled code. assembly reveal era πŸ’€
  • --x86-asm-syntax=[att|intel] β€” specify whether to print assembly code in AT&T syntax (which is the default, jsyk) or Intel syntax. pick your fighter βš”οΈ

πŸ‘‘ AUTHOR πŸ‘‘

maintained by the LLVM Team (https://llvm.org/). they're the main characters, honestly 🫢


2003-2024, LLVM Project


and that's a wrap, bestie 🌸 this page was page 12, dated 2024-07-18, from LLVM-PROFGEN(1) β€” go forth and profile, you absolute legend πŸŽ€βœ¨

πŸ“¦ where this page comes from