OSDN Git Service

Add --hot-func-list to llvm-profdata show for sample profiles
authorweihe <weihe@dev103.prn2.facebook.com>
Sat, 20 Jun 2020 17:13:02 +0000 (10:13 -0700)
committerWenlei He <aktoon@gmail.com>
Sat, 20 Jun 2020 17:13:36 +0000 (10:13 -0700)
commit7348b951fe74f306970f6ac567fe5dddbb1c42d4
tree2ec8931704632add8e1476fcdec7c02959878df1
parent7b201bfcac262572667ff091b3bf8d00e7786217
Add --hot-func-list to llvm-profdata show for sample profiles

Summary: 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.

Reviewers: wmi, hoyFB, wenlei

Reviewed By: wmi

Subscribers: hoyFB, wenlei, llvm-commits, weihe

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81800
llvm/include/llvm/ProfileData/SampleProf.h
llvm/test/tools/llvm-profdata/Inputs/sample-hot-func-list.proftext [new file with mode: 0644]
llvm/test/tools/llvm-profdata/sample-hot-func-list.test [new file with mode: 0644]
llvm/tools/llvm-profdata/llvm-profdata.cpp