http://developer.android.com/intl/zh-TW/reference/java/lang/Thread.html
http://www.androidjavadoc.com/1.1_r1_src/java/lang/Thread.html
Just call Thread.dumpStack();
import java.lang.Thread if needed.
In C++ level,
frameworks/base/libs/utils/CallStack.cpp
CallStack stack;
stack.update(2);
stack.dump();
[Note] kill -3 pid, can dump stack too
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment