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 thescriptcommand. important detail: the rawperf.datashould 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 aretext,binary,extbinary,compbinary, andgcc. for the full tea on what each format actually means, go seellvm-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. π
β¨ Copyright β¨
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
- ubuntu stonking: llvm-18 1:18.1.8-20ubuntu11 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms