diff options
author | Jeff Hao <jeffhao@google.com> | 2013-08-21 16:54:45 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-08-28 22:43:58 -0700 |
commit | 609317d5953f7a2a8174936be0d493d31d5280ab (patch) | |
tree | 3b81e33eae366117b6c0d4fa4dc416aadbf5031c /vm/Thread.cpp | |
parent | 418c84770acea60b3b13aa37ac21563dba4c8854 (diff) | |
download | android_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.cpp | 1 |
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); } |