LLVM-PROFGEN(1)
π LLVM-PROFGEN π
okay bestie, so this is the page for llvm-profgen from the LLVM manual β yes, that LLVM. it's a whole vibe and it's lowkey iconic, so let's get into it β¨
πΈ NAME πΈ
llvm-profgen β the LLVM SPGO profile generation tool. it makes profiles. that's the whole thing. slay π
β¨ SYNOPSIS β¨
llvm-profgen [commands] [options]
no cap, that's it. commands first, options after, go off π«Ά
π¦ DESCRIPTION π¦
so the way that llvm-profgen works is: it takes perf script data files you already have, and it generates a profile data file out of them, for sample-based profile guided optimization β which the cool kids call SPGO. that's the entire job description, and it ate π
π COMMANDS π
bestie listen. you need at least one of these. it's not optional. the tool literally cannot function without one of them. periodt.
--perfscript=<string[,string,...]>β path (or paths, comma-separated) of the perf-script trace, the one Linux perf made with thescriptcommand. β οΈ important little detail: the rawperf.datashould have been profiled with-b. don't forget the-b, i'm begging π--binary=<string[,string,...]>β path (or paths, comma-separated) of the input profiled binary files. the main characters of this whole operation fr fr π--output=<string>β path of the output profile file. where your hard work goes to live π
π OPTIONS π
llvm-profgen supports these options, and yes we're doing all of them:
--format=[text|binary|extbinary|compbinary|gcc]β picks the format of the generated profile. the supported formats aretext,binary,extbinary,compbinary, andgccβ and if you want the full tea on what each one means, go check outllvm-profdata, it explains them. iykyk π--show-mmap-eventsβ prints mmap events. that's the whole thing, she's simple and she's thriving πΈ--show-disassemblyβ prints disassembled code. disassembly girlies rise π--x86-asm-syntax=[att|intel]β picks whether the assembly code gets printed in AT&T syntax (which is the default, just so you know) or in Intel syntax. choose your fighter βοΈ
π AUTHOR π
maintained by the LLVM Team</> β their link is https://llvm.org/ and they are, frankly, carrying the entire compiler ecosystem on their backs π«Ά
β COPYRIGHT β
2003-2025, LLVM Project β two whole decades of this, iconic behaviour honestly π
and that's the page bestie!! π this was LLVM-PROFGEN(1) from the LLVM manual, sitting pretty at version 14, dated 2025-05-22, brought to you by the LLVM Project. go generate some profiles, you absolute legend π¦β¨π
π¦ where this page comes from
- ubuntu questing: llvm-14 1:14.0.6-20ubuntu3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms