summaryrefslogtreecommitdiffstats
path: root/vm/Thread.cpp
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2013-08-21 16:54:45 -0700
committerBrian Carlstrom <bdc@google.com>2013-08-28 22:43:58 -0700
commit609317d5953f7a2a8174936be0d493d31d5280ab (patch)
tree3b81e33eae366117b6c0d4fa4dc416aadbf5031c /vm/Thread.cpp
parent418c84770acea60b3b13aa37ac21563dba4c8854 (diff)
downloadandroid_dalvik-609317d5953f7a2a8174936be0d493d31d5280ab.tar.gz
android_dalvik-609317d5953f7a2a8174936be0d493d31d5280ab.tar.bz2
android_dalvik-609317d5953f7a2a8174936be0d493d31d5280ab.zip
Add support for sample profiling in traceview.
Instead of method instrumentation, allow traceview to periodically sample stack traces of threads. Disabled by default until we add gui support for this new mode. (cherry picked from commit 676f8a527fb62abd39663d55c7d9208f5ca03093) Change-Id: Ia5d0d57012305a5830d042bcb903a429432b035b
Diffstat (limited to 'vm/Thread.cpp')
-rw-r--r--vm/Thread.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/Thread.cpp b/vm/Thread.cpp
index 205167e6d..1ebfca74c 100644
--- a/vm/Thread.cpp
+++ b/vm/Thread.cpp
@@ -997,6 +997,7 @@ static void freeThread(Thread* thread)
#if defined(WITH_SELF_VERIFICATION)
dvmSelfVerificationShadowSpaceFree(thread);
#endif
+ free(thread->stackTraceSample);
free(thread);
}