[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 16:10:13 PDT 2019


wmi updated this revision to Diff 220767.
wmi added a comment.

Add test to verify the size of the profile matching the size shown by llvm-profdata and add an assertion to verify the size of individual section and header adds up to total file size.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D67726

Files:
  include/llvm/ProfileData/SampleProf.h
  include/llvm/ProfileData/SampleProfReader.h
  lib/ProfileData/SampleProfReader.cpp
  test/tools/llvm-profdata/show-prof-size.test
  tools/llvm-profdata/llvm-profdata.cpp

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


More information about the llvm-commits mailing list