I want to know how to do method tracing for Android applications. I mean, a sequence of calls on each object, not a stack trace.
It's very similar to this question (Call trace in java), but on different platforms (jvm-PC vs dvm-Android). I have no control over the start arguments of dalvik, thus I cannot specify a java agent (or am I wrong here?). Is there another way to do method tracing?
Thanks!
The Runtime.traceMethodCalls() method mentioned in the answers to the linked question is in fact wired up in Android. It just starts the method profiling feature with default arguments. For more details, read the article about method profiling and traceview in the Android documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With