[PATCH] D81800: Add --hot-func-list to llvm-profdata show for sample profiles

Wei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 13 16:01:48 PDT 2020


weihe created this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
weihe added subscribers: wenlei, hoyFB.

Add the --hot-func-list feature to llvm-profdata show for sample profiles. This feature prints a list of hot functions whose max sample count are above the 99% threshold, with their numbers of total samples, total samples percentage, max samples, entry samples, and their function names.

Test Plan: ninja check-llvm


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81800

Files:
  llvm/test/tools/llvm-profdata/Inputs/sample-hot-func-list.proftext
  llvm/test/tools/llvm-profdata/sample-hot-func-list.test
  llvm/tools/llvm-profdata/llvm-profdata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81800.270594.patch
Type: text/x-patch
Size: 7963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200613/51246ffe/attachment.bin>


More information about the llvm-commits mailing list