[PATCH] D69700: [profile] Support dynamically allocated counters

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 31 20:35:35 PDT 2019


phosek created this revision.
phosek added reviewers: davidxl, vsk.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
phosek retitled this revision from "Support dynamically allocated counters" to "[profile] Support dynamically allocated counters".

Rather than allocating counter statically at compile time, it's the
responsiblity of the profile runtime to allocate them at run time
by mmapping the profile and updating all the pointers. This allows
writing counters on-the-fly rather than at exit.

See discussion on "D68351 <https://reviews.llvm.org/D68351>: [profile] Add a mode to continuously sync
counter updates to a file" for more details.


Repository:
  rL LLVM

https://reviews.llvm.org/D69700

Files:
  compiler-rt/lib/profile/InstrProfData.inc
  compiler-rt/lib/profile/InstrProfilingFile.c
  compiler-rt/lib/profile/InstrProfilingMerge.c
  compiler-rt/lib/profile/InstrProfilingRuntime.cpp
  compiler-rt/lib/profile/InstrProfilingWriter.c
  compiler-rt/test/profile/instrprof-basic.c
  llvm/include/llvm/ProfileData/InstrProfData.inc
  llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h
  llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69700.227392.patch
Type: text/x-patch
Size: 21337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191101/2b4ae512/attachment.bin>


More information about the llvm-commits mailing list