Add allocation stack traces for HPROF dump.
Man Cao authored
This feature is currently only enabled when DDMS's allocation tracking
is enabled. In the future there should be a way to enable this feature
before an application starts.

Also updates DDMS's recent allocation tracking to use a new backend
data structure that is shared with this feature.

The following system properties controls customizable parameters:
dalvik.vm.allocTrackerMax: max number of objects that have allocation
                           records, default 512K;

dalvik.vm.recentAllocMax:  max number of records that are sent to DDMS
                           when clicking "Get allocation" button,
                           default 64K-1 (limit of the protocol);

dalvik.vm.allocStackDepth: max number of stack frames in an allocation
                           record, default 4.

Bug: 20037135
Change-Id: I26ed378a5613678bd3c43e846025f90470a8e059
8c2ff641
Name Last commit Last update
..
dalvik_system_DexFile.cc
dalvik_system_DexFile.h
dalvik_system_VMDebug.cc
dalvik_system_VMDebug.h
dalvik_system_VMRuntime.cc
dalvik_system_VMRuntime.h
dalvik_system_VMStack.cc
dalvik_system_VMStack.h
dalvik_system_ZygoteHooks.cc
dalvik_system_ZygoteHooks.h
java_lang_Class.cc
java_lang_Class.h
java_lang_DexCache.cc
java_lang_DexCache.h
java_lang_Object.cc
java_lang_Object.h
java_lang_Runtime.cc
java_lang_Runtime.h
java_lang_String.cc
java_lang_String.h
java_lang_StringFactory.cc
java_lang_StringFactory.h
java_lang_System.cc
java_lang_System.h
java_lang_Thread.cc
java_lang_Thread.h
java_lang_Throwable.cc
java_lang_Throwable.h
java_lang_VMClassLoader.cc
java_lang_VMClassLoader.h
java_lang_ref_FinalizerReference.cc
java_lang_ref_FinalizerReference.h
java_lang_ref_Reference.cc
java_lang_ref_Reference.h
java_lang_reflect_Array.cc
java_lang_reflect_Array.h
java_lang_reflect_Constructor.cc
java_lang_reflect_Constructor.h
java_lang_reflect_Field.cc
java_lang_reflect_Field.h
java_lang_reflect_Method.cc
java_lang_reflect_Method.h
java_lang_reflect_Proxy.cc
java_lang_reflect_Proxy.h
java_util_concurrent_atomic_AtomicLong.cc
java_util_concurrent_atomic_AtomicLong.h
libcore_util_CharsetUtils.cc
libcore_util_CharsetUtils.h
org_apache_harmony_dalvik_ddmc_DdmServer.cc
org_apache_harmony_dalvik_ddmc_DdmServer.h
org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc
org_apache_harmony_dalvik_ddmc_DdmVmInternal.h
scoped_fast_native_object_access.h
sun_misc_Unsafe.cc
sun_misc_Unsafe.h