Searched refs:g_heap_id (Results 1 – 4 of 4) sorted by relevance
/external/perfetto/src/profiling/memory/ |
D | malloc_interceptor_glibc_preload.cc | 29 uint32_t g_heap_id = AHeapProfile_registerHeap(AHeapInfo_create("libc.malloc")); variable 54 return perfetto::profiling::wrap_malloc(g_heap_id, __libc_malloc, size); in malloc() 58 return perfetto::profiling::wrap_free(g_heap_id, __libc_free, ptr); in free() 62 return perfetto::profiling::wrap_calloc(g_heap_id, __libc_calloc, nmemb, in calloc() 67 return perfetto::profiling::wrap_realloc(g_heap_id, __libc_realloc, ptr, in realloc() 75 void* alloc = perfetto::profiling::wrap_memalign(g_heap_id, __libc_memalign, in posix_memalign() 85 return perfetto::profiling::wrap_memalign(g_heap_id, __libc_memalign, in aligned_alloc() 90 return perfetto::profiling::wrap_memalign(g_heap_id, __libc_memalign, in memalign() 95 return perfetto::profiling::wrap_pvalloc(g_heap_id, __libc_pvalloc, size); in pvalloc() 99 return perfetto::profiling::wrap_valloc(g_heap_id, __libc_valloc, size); in valloc() [all …]
|
D | malloc_interceptor_bionic_hooks.cc | 98 uint32_t g_heap_id = AHeapProfile_registerHeap( variable 130 return perfetto::profiling::wrap_malloc(g_heap_id, GetDispatch()->malloc, in heapprofd_malloc() 135 return perfetto::profiling::wrap_calloc(g_heap_id, GetDispatch()->calloc, in heapprofd_calloc() 142 g_heap_id, GetDispatch()->aligned_alloc, alignment, size); in heapprofd_aligned_alloc() 146 return perfetto::profiling::wrap_memalign(g_heap_id, GetDispatch()->memalign, in heapprofd_memalign() 152 g_heap_id, GetDispatch()->posix_memalign, memptr, alignment, size); in heapprofd_posix_memalign() 156 return perfetto::profiling::wrap_free(g_heap_id, GetDispatch()->free, in heapprofd_free() 169 return perfetto::profiling::wrap_realloc(g_heap_id, GetDispatch()->realloc, in heapprofd_realloc() 233 return perfetto::profiling::wrap_pvalloc(g_heap_id, GetDispatch()->pvalloc, in heapprofd_pvalloc() 238 return perfetto::profiling::wrap_valloc(g_heap_id, GetDispatch()->valloc, in heapprofd_valloc()
|
/external/perfetto/tools/ |
D | multithreaded_alloc.cc | 50 uint32_t g_heap_id = AHeapProfile_registerHeap( variable 72 AHeapProfile_reportAllocation(g_heap_id, in Thread() 76 g_heap_id, ScrambleAllocId(alloc_id - pending_allocs, thread_idx)); in Thread()
|
/external/perfetto/docs/instrumentation/ |
D | heapprofd-api.md | 83 static uint32_t g_heap_id = AHeapProfile_registerHeap( 87 AHeapProfile_reportAllocation(g_heap_id, static_cast<uintptr_t>(ptr), size); 92 AHeapProfile_reportFree(g_heap_id, static_cast<uintptr_t>(ptr));
|