LLVM-PROFGEN(1)

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

okay so bestie, welcome to the llvm-profgen glow-up β€” this is the LLVM manual page, and we're about to make profile generation make sense. 🫢


✨ NAME ✨

llvm-profgen β€” the LLVM SPGO profile generation tool. that's it, that's the whole vibe. πŸ‘‘


✨ SYNOPSIS ✨

llvm-profgen [commands] [options]

✨ DESCRIPTION ✨

so the llvm-profgen utility literally does one iconic thing: it generates a profile data file from the perf script data files you hand it, all for sample-based profile guided optimization (SPGO). it's giving "turn your raw perf traces into something the compiler can actually use." slay. πŸ’–


✨ COMMANDS ✨

heads up bestie β€” at least one of the following commands are required. you can't just show up with options only, the tool needs a job to do. no cap. πŸŽ€

  • --perfscript=<string[,string,...]> β€” the path (or paths, comma-separated ✨) of the perf-script trace created by the Linux perf tool with the script command. important detail: the raw perf.data should be profiled with -b. don't forget the -b, iykyk. πŸ¦‹
  • --binary=<string[,string,...]> β€” the path (or paths, comma-separated) of the input profiled binary files. the binaries in question. the main characters. πŸ’…
  • --output=<string> β€” the path of the output profile file. where the magic gets written. πŸ“

✨ OPTIONS ✨

llvm-profgen supports the following options, and yes you should read all of them:

  • --format=[text|binary|extbinary|compbinary|gcc] β€” specify the format of the generated profile. supported <format> values are text, binary, extbinary, compbinary, and gcc. for the full tea on what each format actually means, go see llvm-profdata β€” it spills the descriptions. β˜•
  • --show-mmap-events β€” print mmap events. that's the whole thing. lowkey useful, highkey nosy. πŸ‘€
  • --show-disassembly β€” print disassembled code. assembly girlies rise. πŸ”₯
  • --x86-asm-syntax=[att|intel] β€” specify whether to print assembly code in AT&T syntax (the default, bestie, in case you were wondering) or Intel syntax. pick your fighter. βš”οΈ

✨ Author ✨

maintained by the LLVM Team (https://llvm.org/). absolute legends, fr fr. 🌈


2003-2026, LLVM Project β€” the whole span, iconic. πŸ‘‘


and that's the page!! 🌸 this manual page is from LLVM version 15, dated 2026-09-09, and honestly? she ate. periodt. πŸ’œπŸŽ€πŸ§š

πŸ“¦ where this page comes from