[PATCH] D67726: [SampleFDO] Expose an interface to return the size of a section or the size of the profile for profile in ExtBinary format

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 12:17:30 PDT 2019


wmi created this revision.
wmi added reviewers: davidxl, mtrofin.
Herald added a project: LLVM.

Sometimes we want to limit the size of the profile by stripping some functions with low sample count or by stripping some function names with small text size from profile symbol list. That requires the profile reader to have the interfaces returning the size of a section or the size of total profile. The patch add those interfaces.

At the same time, add some dump facility to show the size of each section.


Repository:
  rL LLVM

https://reviews.llvm.org/D67726

Files:
  include/llvm/ProfileData/SampleProf.h
  include/llvm/ProfileData/SampleProfReader.h
  lib/ProfileData/SampleProfReader.cpp
  tools/llvm-profdata/llvm-profdata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67726.220720.patch
Type: text/x-patch
Size: 5365 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190918/8cd121a0/attachment.bin>


More information about the llvm-commits mailing list