diff options
author | Teresa Johnson <tejohnson@google.com> | 2020-09-03 15:21:20 -0700 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2020-10-16 09:47:02 -0700 |
commit | 3d4bba302d2460b9ac6463ef920c301f1f40fb41 (patch) | |
tree | a1eba35c9176ae517958fdf112a9703610bb5543 /llvm/docs/CommandGuide/llvm-objdump.rst | |
parent | 880fc4d581b091dbb68703c3e55c2ca2f94192c2 (diff) | |
download | llvm-3d4bba302d2460b9ac6463ef920c301f1f40fb41.zip llvm-3d4bba302d2460b9ac6463ef920c301f1f40fb41.tar.gz llvm-3d4bba302d2460b9ac6463ef920c301f1f40fb41.tar.bz2 |
[MemProf] Memory profiling runtime support
See RFC for background:
http://lists.llvm.org/pipermail/llvm-dev/2020-June/142744.html
Follow on companion to the clang/llvm instrumentation support in D85948
and committed earlier.
This patch adds the compiler-rt runtime support for the memory
profiling.
Note that much of this support was cloned from asan (and then greatly
simplified and renamed). For example the interactions with the
sanitizer_common allocators, error handling, interception, etc.
The bulk of the memory profiling specific code can be found in the
MemInfoBlock, MemInfoBlockCache, and related classes defined and used
in memprof_allocator.cpp.
For now, the memory profile is dumped to text (stderr by default, but
honors the sanitizer_common log_path flag). It is dumped in either a
default verbose format, or an optional terse format.
This patch also adds a set of tests for the core functionality.
Differential Revision: https://reviews.llvm.org/D87120
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-objdump.rst')
0 files changed, 0 insertions, 0 deletions