gperftools/src
Aliaksei Kandratsenka aaed4feb28 [heap-profiler] use regular stacktracing API
Instead of MallocHook::GetCallerStackTrace.

Thing is, GetCallerStackTrace isn't reliable beyond ELF systems, like
OSX. And, yet, things just work without it for e.g. heap
sampling. Why? Because pprof already knows how to exclude
tcmalloc-internal stack frames (by looking at e.g. tcmalloc::
namespace). So we do the same for heap profiler.

This fixes heap profiling unit tests on OSX.
2024-09-27 14:47:03 -04:00
..
base drop mmap_hook 2024-09-25 18:34:10 -04:00
gperftools move Invoke*Hook stuff under tcmalloc namespace 2024-09-27 14:46:06 -04:00
tests make large_heap_fragmentation_unittest not as painful on windows 2024-09-27 00:06:13 -04:00
windows move Invoke*Hook stuff under tcmalloc namespace 2024-09-27 14:46:06 -04:00
addressmap-inl.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
central_freelist.cc mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
central_freelist.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
check_address-inl.h handle re-entrancy in check-address facility 2024-05-01 16:51:29 -04:00
common.cc mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
common.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
config_for_unittests.h update {tcmalloc_unit,debugallocation_}test to use TestingPortal 2024-02-27 17:00:35 -05:00
debugallocation.cc move Invoke*Hook stuff under tcmalloc namespace 2024-09-27 14:46:06 -04:00
emergency_malloc.cc drop mmap_hook 2024-09-25 18:34:10 -04:00
emergency_malloc.h expand emergency malloc integration to !kHaveGoodTLS systems 2024-05-23 13:31:42 -04:00
gen_getpc.rb perform ucontext->pc variants testing in compile-time 2023-12-02 18:58:45 -05:00
getenv_safe.h
getpc-inl.h perform ucontext->pc variants testing in compile-time 2023-12-02 18:58:45 -05:00
getpc.h Several build fixes and cleanups 2024-01-26 16:56:17 -05:00
heap-checker-stub.cc amputate heap checker 2024-09-25 18:34:09 -04:00
heap-profile-stats.h drop memory region map 2024-09-25 18:34:10 -04:00
heap-profile-table.cc [heap-profiler] use regular stacktracing API 2024-09-27 14:47:03 -04:00
heap-profile-table.h [heap-profiler] use regular stacktracing API 2024-09-27 14:47:03 -04:00
heap-profiler.cc [heap-profiler] use regular stacktracing API 2024-09-27 14:47:03 -04:00
internal_logging.cc better abort in internal_logging.cc:Log 2024-05-18 13:53:34 -04:00
internal_logging.h don't dllexport Log and HookList 2024-03-24 16:59:58 -04:00
libc_override.h
libc_override_aix.h Add mallinfo2 function 2023-12-07 14:10:51 +01:00
libc_override_gcc_and_weak.h ensure dllexport/public visibility of all aliases we generate 2024-03-24 16:59:58 -04:00
libc_override_glibc.h ensure dllexport/public visibility of all aliases we generate 2024-03-24 16:59:58 -04:00
libc_override_osx.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
libc_override_redefine.h bump required c++ standard to c++-17 2024-01-30 15:54:24 -05:00
linked_list.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
malloc_backtrace.cc unbreak grab-backtrace frame skipping logic 2024-05-29 18:30:09 -04:00
malloc_backtrace.h expand emergency malloc integration to !kHaveGoodTLS systems 2024-05-23 13:31:42 -04:00
malloc_extension.cc amputate heap checker 2024-09-25 18:34:09 -04:00
malloc_hook-inl.h move Invoke*Hook stuff under tcmalloc namespace 2024-09-27 14:46:06 -04:00
malloc_hook.cc move Invoke*Hook stuff under tcmalloc namespace 2024-09-27 14:46:06 -04:00
maybe_emergency_malloc.h expand emergency malloc integration to !kHaveGoodTLS systems 2024-05-23 13:31:42 -04:00
memfs_malloc.cc mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
memmap.h drop mmap_hook 2024-09-25 18:34:10 -04:00
packed-cache-inl.h liberate code base from legacy fixed size int types 2024-02-04 15:47:21 -05:00
page_heap.cc mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
page_heap.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
page_heap_allocator.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
pagemap.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
pprof drop unused windows/{addr2line,nm}-pdb 2024-09-25 18:33:57 -04:00
profile-handler.cc mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
profile-handler.h liberate code base from legacy fixed size int types 2024-02-04 15:47:21 -05:00
profiledata.cc mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
profiledata.h make profiler_unittest less brittle 2024-09-23 17:23:56 -04:00
profiler.cc mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
safe_strerror.cc
safe_strerror.h
sampler.cc initialize tcmalloc's sample parameter at earliest opportunity 2024-09-18 12:59:24 -04:00
sampler.h liberate sampler_test from linking to libtcmalloc 2024-02-07 15:45:25 -05:00
span.cc mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
span.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
stack_trace_table.cc untangle a number of unittests from libtcmalloc_minimal.so 2024-02-07 23:54:03 -05:00
stack_trace_table.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
stacktrace.cc [qnx] prefer fp unwinder 2024-08-13 14:26:05 -04:00
stacktrace_arm-inl.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
stacktrace_generic-inl.h
stacktrace_generic_fp-inl.h unbreak generic_fp frame skipping 2024-09-23 14:28:34 -04:00
stacktrace_impl_setup-inl.h
stacktrace_instrument-inl.h
stacktrace_libgcc-inl.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
stacktrace_libunwind-inl.h
stacktrace_powerpc-darwin-inl.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
stacktrace_powerpc-inl.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
stacktrace_powerpc-linux-inl.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
stacktrace_win32-inl.h
static_vars.cc mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
static_vars.h apply StaticStorage across the source code 2024-03-27 15:48:30 -04:00
symbolize.cc mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
symbolize.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
system-alloc.cc drop mmap_hook 2024-09-25 18:34:10 -04:00
system-alloc.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
tcmalloc.cc move Invoke*Hook stuff under tcmalloc namespace 2024-09-27 14:46:06 -04:00
tcmalloc_guard.h
tcmalloc_internal.h initialize correct MallocExtension instance early 2024-02-27 17:00:35 -05:00
testing_portal.h amputate heap checker 2024-09-25 18:34:09 -04:00
thread_cache.cc mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
thread_cache.h mass-replace NULL -> nullptr 2024-09-25 18:33:56 -04:00
thread_cache_ptr.cc expand emergency malloc integration to !kHaveGoodTLS systems 2024-05-23 13:31:42 -04:00
thread_cache_ptr.h expand emergency malloc integration to !kHaveGoodTLS systems 2024-05-23 13:31:42 -04:00