This patch improves llvm-profdata show command:
(1) add -value-cutoff=<N> option: only show function whose max count value is greater or equal to this cutoff value.
(2) add -list-below-cutoff option: output the functions whose max count value are below the cutoff value.
(3) format value-profile count values and print out the percentage.
Details
Diff Detail
Event Timeline
why is list-below-cutoff option useful?
Please also update the documentation for llvm-profdata with the new options.
it can be used to list all the 0-count functions, like "-list-below-cutoff -value-cutoff=1 "
Please also update the documentation for llvm-profdata with the new options.
docs/CommandGuide/llvm-profdata.rst | ||
---|---|---|
226 | 'Only output names of functions whose .... ' | |
tools/llvm-profdata/llvm-profdata.cpp | ||
674 | ListBelow --> OnlyListBelow | |
702 | !TextFormat && ListBelow Text dump option is not compatible with ListBelow, and it should take precedence | |
811 | Number of functions with maximum count (< " << ValueCutoff << "): " << .. | |
812 | Functions -> functions | |
921 | ListBelow --> OnlyListBelow | |
923 | The semantics seems to be 'only list functions with ...' |
value --> values