Home
last modified time | relevance | path

Searched refs:leak_info (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/utils/
DMemoryLeakTrackUtil.cpp54 android_mallopt_leak_info_t leak_info; in dumpMemoryAddresses() local
55 if (!android_mallopt(M_GET_MALLOC_LEAK_INFO, &leak_info, sizeof(leak_info))) { in dumpMemoryAddresses()
60 if (leak_info.buffer == nullptr || leak_info.overall_size == 0 || leak_info.info_size == 0 in dumpMemoryAddresses()
61 || (count = leak_info.overall_size / leak_info.info_size) == 0) { in dumpMemoryAddresses()
67 oss << leak_info.total_memory << " bytes in " << count << " allocations\n"; in dumpMemoryAddresses()
81 const AllocEntry * const e = (AllocEntry *)(leak_info.buffer + i * leak_info.info_size); in dumpMemoryAddresses()
85 oss << backtrace_string(e->backtrace, leak_info.backtrace_size) << "\n"; in dumpMemoryAddresses()
88 android_mallopt(M_FREE_MALLOC_LEAK_INFO, &leak_info, sizeof(leak_info)); in dumpMemoryAddresses()
/frameworks/base/core/jni/
Dandroid_ddm_DdmHandleNativeHeap.cpp79 android_mallopt_leak_info_t leak_info; in DdmHandleNativeHeap_getLeakInfo() local
80 if (!android_mallopt(M_GET_MALLOC_LEAK_INFO, &leak_info, sizeof(leak_info))) { in DdmHandleNativeHeap_getLeakInfo()
85 header.allocSize = leak_info.overall_size; in DdmHandleNativeHeap_getLeakInfo()
86 header.allocInfoSize = leak_info.info_size; in DdmHandleNativeHeap_getLeakInfo()
87 header.totalMemory = leak_info.total_memory; in DdmHandleNativeHeap_getLeakInfo()
88 header.backtraceSize = leak_info.backtrace_size; in DdmHandleNativeHeap_getLeakInfo()
106 header.allocSize, reinterpret_cast<jbyte*>(leak_info.buffer)); in DdmHandleNativeHeap_getLeakInfo()
109 android_mallopt(M_FREE_MALLOC_LEAK_INFO, &leak_info, sizeof(leak_info)); in DdmHandleNativeHeap_getLeakInfo()