forked from OSchip/llvm-project
![]() The definition of the MemInfoBlock is shared between the memprof compiler-rt runtime and llvm/lib/ProfileData/. This change removes the memprof_meminfoblock header and moves the struct to the shared include file. To enable this sharing, the Print method is moved to the memprof_allocator (the only place it is used) and the remaining uses are updated to refer to the MemInfoBlock defined in the MemProfData.inc file. Also a couple of other minor changes which improve usability of the types in MemProfData.inc. * Update the PACKED macro to handle commas. * Add constructors and equality operators. * Don't initialize the buildid field. Differential Revision: https://reviews.llvm.org/D116780 |
||
---|---|---|
.. | ||
tests | ||
CMakeLists.txt | ||
README.txt | ||
memprof.syms.extra | ||
memprof_allocator.cpp | ||
memprof_allocator.h | ||
memprof_descriptions.cpp | ||
memprof_descriptions.h | ||
memprof_flags.cpp | ||
memprof_flags.h | ||
memprof_flags.inc | ||
memprof_init_version.h | ||
memprof_interceptors.cpp | ||
memprof_interceptors.h | ||
memprof_interceptors_memintrinsics.cpp | ||
memprof_interceptors_memintrinsics.h | ||
memprof_interface_internal.h | ||
memprof_internal.h | ||
memprof_linux.cpp | ||
memprof_malloc_linux.cpp | ||
memprof_mapping.h | ||
memprof_mibmap.cpp | ||
memprof_mibmap.h | ||
memprof_new_delete.cpp | ||
memprof_posix.cpp | ||
memprof_preinit.cpp | ||
memprof_rawprofile.cpp | ||
memprof_rawprofile.h | ||
memprof_rtl.cpp | ||
memprof_shadow_setup.cpp | ||
memprof_stack.cpp | ||
memprof_stack.h | ||
memprof_stats.cpp | ||
memprof_stats.h | ||
memprof_thread.cpp | ||
memprof_thread.h | ||
weak_symbols.txt |
README.txt
MemProfiling RT ================================ This directory contains sources of the MemProfiling (MemProf) runtime library. Directory structure: README.txt : This file. CMakeLists.txt : File for cmake-based build. memprof_*.{cc,h} : Sources of the memprof runtime library. Also MemProf runtime needs the following libraries: lib/interception/ : Machinery used to intercept function calls. lib/sanitizer_common/ : Code shared between various sanitizers. MemProf runtime can only be built by CMake. You can run MemProf tests from the root of your CMake build tree: make check-memprof