diff options
author | Rong Xu <xur@google.com> | 2019-01-08 22:41:48 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2019-01-08 22:41:48 +0000 |
commit | 52aa224affbf2559387e59d71ad809b4bd726e7a (patch) | |
tree | ff78b56173980a26d12ebb6ad959517cbb3b529d /llvm/docs/CommandGuide | |
parent | d023dd60e944886a9d5a0b1dbf46f67d43293af8 (diff) | |
download | bcm5719-llvm-52aa224affbf2559387e59d71ad809b4bd726e7a.tar.gz bcm5719-llvm-52aa224affbf2559387e59d71ad809b4bd726e7a.zip |
[llvm-profdata] add value-cutoff functionality in show command
This patch improves llvm-profdata show command:
(1) add -value-cutoff=<N> option: Show only those functions whose max count
values are greater or equal to N.
(2) add -list-below-cutoff option: Only output names of functions whose max
count value are below the cutoff.
(3) formats value-profile counts and prints out percentage.
Differential Revision: https://reviews.llvm.org/D56342
llvm-svn: 350673
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-profdata.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/docs/CommandGuide/llvm-profdata.rst b/llvm/docs/CommandGuide/llvm-profdata.rst index 96c91e309d7..f66fb499697 100644 --- a/llvm/docs/CommandGuide/llvm-profdata.rst +++ b/llvm/docs/CommandGuide/llvm-profdata.rst @@ -203,7 +203,7 @@ OPTIONS annotations. .. option:: -topn=n - + Instruct the profile dumper to show the top ``n`` functions with the hottest basic blocks in the summary section. By default, the topn functions are not dumped. @@ -216,6 +216,16 @@ OPTIONS Show the profiled sizes of the memory intrinsic calls for shown functions. +.. option:: -value-cutoff=n + + Show only those functions whose max count values are greater or equal to ``n``. + By default, the value-cutoff is set to 0. + +.. option:: -list-below-cutoff + + Only output names of functions whose max count value are below the cutoff + value. + EXIT STATUS ----------- |