Add support for sample profiling in traceview

System Internals / Dalvik - Jeff Hao [google.com] - 27 August 2013 18:38 UTC

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)

34d4c04 Add support for sample profiling in traceview.
vm/Profile.cpp | 243 +++++++++++++++++++++++++++++++++++++++++------
vm/Profile.h | 36 +++++--
vm/Thread.cpp | 1 +
vm/Thread.h | 5 +
vm/interp/Interp.cpp | 6 +-
vm/interp/InterpState.h | 1 +
6 files changed, 256 insertions(+), 36 deletions(-)

Upstream: android.googlesource.com


  • Share