[PATCH] D35155: [ProfileData] Add new option to dump top N hottest functions

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 9 06:14:46 PDT 2017


davidxl created this revision.
Herald added a subscriber: sanjoy.

The command line is:

  llvm-profdata show --topn=<N>  <profile_data>

This is useful for user to do focused analysis. With top function names dumped, user can use option  --counters --function=<FuncName> to dump counters of the specified function and do comparisons.


https://reviews.llvm.org/D35155

Files:
  test/tools/llvm-profdata/c-general.test
  tools/llvm-profdata/llvm-profdata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35155.105714.patch
Type: text/x-patch
Size: 5023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170709/09f1324c/attachment-0001.bin>


More information about the llvm-commits mailing list