[PATCH] D56342: [llvm-profdata] add value-cutoff functionality to show command

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 4 16:58:34 PST 2019


xur created this revision.
xur added a reviewer: davidxl.

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.


https://reviews.llvm.org/D56342

Files:
  test/tools/llvm-profdata/Inputs/cutoff.proftext
  test/tools/llvm-profdata/cutoff.test
  test/tools/llvm-profdata/value-prof.proftext
  tools/llvm-profdata/llvm-profdata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56342.180343.patch
Type: text/x-patch
Size: 8700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190105/80e40d1a/attachment.bin>


More information about the llvm-commits mailing list