LLVM-PROFDATA(1) LLVM LLVM-PROFDATA(1) (NAME) llvm-profdata - (SYNOPSIS) llvm-profdata command [args...] (DESCRIPTION) llvm-profdata (profile data) . (COMMANDS) o merge o show o overlap o order (MERGE) (SYNOPSIS) llvm-profdata merge [options] [filename...] (DESCRIPTION) llvm-profdata merge PGO (indexed) . . . . -weighted-input . -weighted-input -input-files . (OPTIONS) --help . --output=, -o . Output - . --weighted-input= . filename weight () weight (>= 1) . . . --input-files=, -f . . '#' . , . --remapping-file=, -r . . # . llvm-cxxmap <> . --instr (default) (instrumentation-based) . --sample (sample-based) . : --binary (default) (binary). . --extbinary (extensible binary). . . --text . . . --gcc gcov GCC ( ). --sparse[=true|false] . -instr . false PGO . --num-threads=, -j N (thread) . N=0 llvm-profdata . . --failure-mode=[any|all] . : 'any' merge 'all' merge . 'all' . 'any' . --prof-sym-list= . extbinary . . --compress-all-sections=[true|false] . (sample-based) extbinary . --use-md5=[true|false] MD5 . extbinary . --gen-partial-profile=[true|false] . extbinary . --split-layout=[true|false] (inlined) . extbinary . --convert-sample-profile-layout=[nest|flat] . nest ( CS ) flat ( ). --supplement-instr-with-sample= (instrumentation profile) . . ( -instr ). --zero-counter-threshold= instr (cold) (hot) . --instr-prof-cold-threshold= instr . --suppl-min-size-threshold= PGO . --debug-info= .dSYM . --debug-info-correlate --profile-correlate=debug-info . --binary-file= . -profile-correlate=binary . --debuginfod debuginfod . -profile-correlate=binary . --debug-file-directory= . -profile-correlate=binary . --correlate= (debug_info binary) -debuginfod -debug-file-directory= . --temporal-profile-trace-reservoir-size (temporal profile traces) . . . 100 . --temporal-profile-max-trace-length . (truncated) . 1000 . --function= (regex) . --no-function= . --function --no-function . : llvm-profdata merge foo.profdata bar.profdata baz.profdata -output merged.profdata foo.profdata : llvm-profdata merge --weighted-input=10,foo.profdata bar.profdata baz.profdata --output merged.profdata ( ): llvm-profdata merge --weighted-input=10,foo.profdata --weighted-input=1,bar.profdata --weighted-input=1,baz.profdata --output merged.profdata SHOW (SYNOPSIS) llvm-profdata show [options] [filename] (DESCRIPTION) llvm-profdata show . filename - llvm-profdata show . (OPTIONS) --all-functions . --binary-ids (binary ids) . --counts . --show-format= . --function= . --help . --output=, -o . output - . --instr (default) (instrumentation-based) . --text instrumentation . ( ) . --topn= n (basic blocks) . topn . --sample (sample-based) . --memop-sizes (memory intrinsic calls) . --value-cutoff= n . value-cutoff . --list-below-cutoff (cutoff) . --profile-version . --showcs (context sensitive) . . --show-prof-sym-list=[true|false] . extbinary . --show-sec-info-only=[true|false] (section) . extbinary . --debug-info= .dSYM (raw profile) . --debug-info-correlate --profile-correlate=debug-info . --covered . (SYNOPSIS) llvm-profdata overlap [] [base profile file] [test profile file] (DESCRIPTION) llvm-profdata overlap (overlap) . overlap : base profile file : {c1_1, c1_2, ..., c1_n, c1_u_1, c2_u_2, ..., c2_u_s} test profile file : {c2_1, c2_2, ..., c2_n, c2_v_1, c2_v_2, ..., c2_v_t}. c{1|2}_i ( i = 1 .. n) c1_u_i ( i = 1 .. s) c2_v_i ( i = 1 .. v) ( ) base profile file test profile file . sum_1 = c1_1 + c1_2 + ... + c1_n + c1_u_1 + c2_u_2 + ... + c2_u_s sum_2 = c2_1 + c2_2 + ... + c2_n + c2_v_1 + c2_v_2 + ... + c2_v_t . overlap = min(c1_1/sum_1, c2_1/sum_2) + min(c1_2/sum_1, c2_2/sum_2) + ... + min(c1_n/sum_1, c2_n/sum_2). 0.0% 100.0% 0.0% 100.0% . base profile file {400, 600} test profile file {60000, 40000} overlap 80% . (OPTIONS) --function= . --help . --output=, -o . output - . --value-cutoff= n . value-cutoff unsigned long long . --cs (context-sensitive). . ORDER (SYNOPSIS) llvm-profdata order [] [filename] (DESCRIPTION) llvm-profdata order (page faults) . --symbol-ordering-file= ELF -order-file Mach-O lld . . (OPTIONS) --help . --output=, -o . output - . llvm-profdata 1 . (AUTHORS) LLVM (https://llvm.org). (COPYRIGHT) 2003-2026, LLVM Project 22 2026-07-15 LLVM-PROFDATA(1)