[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
Tue Jul 11 10:43:44 PDT 2017
davidxl marked 2 inline comments as done.
davidxl added inline comments.
================
Comment at: test/tools/llvm-profdata/c-general.test:14
+RUN: llvm-profdata show %p/Inputs/c-general.profraw --topn=3 -o - | FileCheck %s
RUN: llvm-profdata show %p/Inputs/c-general.profraw -o - --function=switches | FileCheck %s -check-prefix=SWITCHES -check-prefix=CHECK
----------------
vsk wrote:
> I think --topn and --all-functions should be mutually incompatible.
They are compatible. One use case is to dump them together into one file. User can first look at the top functions and examine the counter details for the function of interest.
https://reviews.llvm.org/D35155
More information about the llvm-commits
mailing list