Skip to content

Instantly share code, notes, and snippets.

@minglotus-6
Created November 9, 2023 05:09
Show Gist options
  • Save minglotus-6/2be4603f0706a692dfe8990f57cf86dc to your computer and use it in GitHub Desktop.
Save minglotus-6/2be4603f0706a692dfe8990f57cf86dc to your computer and use it in GitHub Desktop.
./bin/llvm-profdata show --help
OVERVIEW: LLVM profile data summary
SUBCOMMAND 'show': show profile data
USAGE: llvm-profdata show [options] <profdata-file>
OPTIONS:
General options:
--all-functions - Details for each and every function
--binary-ids - Show binary ids in the profile.
--counts - Show counter values for shown functions
--covered - Show only the functions that have been executed.
--debug-info=<string> - Read and extract profile metadata from debug info and show the functions it found.
--detailed-summary - Show detailed profile summary
--detailed-summary-cutoffs=<800000,901000,999999> - Cutoff percentages (times 10000) for generating detailed summary
--function=<string> - Details for matching functions
--hot-func-list - Show profile summary of a list of hot functions
--ic-targets - Show indirect call site target values for shown functions
--json - Show sample profile data in the JSON format (deprecated, please use --show-format=json)
--list-below-cutoff - Only output names of functions whose max count values are below the cutoff value
--max-debug-info-correlation-warnings=<uint> - The maximum number of warnings to emit when correlating profile from debug info (0 = no limit)
--memop-sizes - Show the profiled sizes of the memory intrinsic calls for shown functions
Profile kind:
--instr - Instrumentation profile (default)
--sample - Sample profile
--memory - MemProf memory access profile
--output=<output> - Output file
--profile-version - Show profile version.
--profiled-binary=<string> - Path to binary from which the profile was collected.
--show-format=<value> - Emit output in the selected format if supported
=text - emit normal text output (default)
=json - emit JSON
=yaml - emit YAML
--show-prof-sym-list - Show profile symbol list if it exists in the profile.
--show-sec-info-only - Show the information of each section in the sample profile. The flag is only usable when the sample profile is in extbinary format
--showcs - Show context sensitive counts
--temporal-profile-traces - Show temporal profile traces in the profile.
--text - Show instr profile data in text dump format
--topn=<uint> - Show the list of functions with the largest internal counts
--value-cutoff=<uint> - Set the count value cutoff. Functions with the maximum count less than this value will not be printed out. (Default is 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment