[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
Tue Jun 16 19:10:40 PDT 2020


weihe updated this revision to Diff 271258.
weihe edited the summary of this revision.
weihe added a comment.

Moved getInlineeMaxCount() to be FunctionSamples' member and wrapped printing code into a separate function.

The original static function getInlineeMaxCount() has been moved to be FunctionSamples::getMaxCountInside(). The output code in the original showHotFunctionList() has been wrapped into a separate function dumpHotFunctionList().


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81800/new/

https://reviews.llvm.org/D81800

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: D81800.271258.patch
Type: text/x-patch
Size: 10547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200617/b6bf46ad/attachment.bin>


More information about the llvm-commits mailing list