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 ↗ | (On Diff #180538) | 'Only output names of functions whose .... ' |
tools/llvm-profdata/llvm-profdata.cpp | ||
675 | ListBelow --> OnlyListBelow | |
703 | !TextFormat && ListBelow Text dump option is not compatible with ListBelow, and it should take precedence | |
812 | Number of functions with maximum count (< " << ValueCutoff << "): " << .. | |
813 | Functions -> functions | |
922 | ListBelow --> OnlyListBelow | |
924 | The semantics seems to be 'only list functions with ...' |
Remove space here.