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

Wei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 00:29:03 PDT 2020


weihe created this revision.
weihe added a project: LLVM.
weihe added reviewers: wenlei, hoyFB.
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:


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82355

Files:
  llvm/include/llvm/ProfileData/SampleProf.h
  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: D82355.272631.patch
Type: text/x-patch
Size: 10824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200623/f0173871/attachment.bin>


More information about the llvm-commits mailing list