[PATCH] D114286: [memprof] Extend llvm-profdata to display MemProf profile summaries.

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 22 13:53:18 PST 2021


davidxl added inline comments.


================
Comment at: llvm/lib/ProfileData/RawMemProfReader.cpp:33
+
+  return Summary{
+      Header->version,
----------------
snehasish wrote:
> davidxl wrote:
> > This assumes one Header in the profile, but it is possible to have multiple raw profiles concatenated in the same file?
> This is just a helper which reads some data from 1 raw profile. Start only needs to point to the beginning of a header (see usage in RawMemProfReader::printSummary). Is there anything you recommend to make this usage clearer?
I misunderstood - I thought this interface is used to compute the 'combined' summary.

Do we have a need to have the later?  For instance, for printSummary, is it helpful to just print out the combined data to the user instead of printing out multiple 'summaries'? Intuitively, summary means the later.




Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114286



More information about the llvm-commits mailing list