[PATCH] D141558: [MemProf] Collect access density statistics during profiling

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 11 17:23:36 PST 2023


tejohnson created this revision.
tejohnson added reviewers: snehasish, davidxl.
Herald added subscribers: Enna1, wenlei.
Herald added a project: All.
tejohnson requested review of this revision.
Herald added projects: clang, Sanitizers, LLVM.
Herald added subscribers: Sanitizers, cfe-commits.

Track min/max/avg access density (accesses per byte and accesses per
byte per lifetime second) metrics directly during profiling. This allows
more accurate use of these metrics in profile analysis and use, instead
of trying to compute them from already aggregated data in the profile.

This required regenerating some of the raw profile and executable inputs
for a few tests. While here, make the llvm-profdata memprof tests more
resilient to differences in things like memory mapping, timestamps and
cpu ids to make future test updates easier.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141558

Files:
  clang/test/CodeGen/Inputs/memprof.memprofraw
  compiler-rt/include/profile/MIBEntryDef.inc
  compiler-rt/include/profile/MemProfData.inc
  llvm/include/llvm/ProfileData/MIBEntryDef.inc
  llvm/include/llvm/ProfileData/MemProfData.inc
  llvm/test/Transforms/PGOProfile/Inputs/memprof.exe
  llvm/test/Transforms/PGOProfile/Inputs/memprof.memprofraw
  llvm/test/tools/llvm-profdata/Inputs/basic.memprofexe
  llvm/test/tools/llvm-profdata/Inputs/basic.memprofraw
  llvm/test/tools/llvm-profdata/Inputs/inline.memprofexe
  llvm/test/tools/llvm-profdata/Inputs/inline.memprofraw
  llvm/test/tools/llvm-profdata/Inputs/multi.memprofexe
  llvm/test/tools/llvm-profdata/Inputs/multi.memprofraw
  llvm/test/tools/llvm-profdata/memprof-basic.test
  llvm/test/tools/llvm-profdata/memprof-inline.test
  llvm/test/tools/llvm-profdata/memprof-multi.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141558.488434.patch
Type: text/x-patch
Size: 15986 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230112/b45025a3/attachment.bin>


More information about the llvm-commits mailing list