How to use startMethodTracing APIs on Android?
Posted
by Rajorshi
on Stack Overflow
See other posts from Stack Overflow
or by Rajorshi
Published on 2010-05-20T05:21:31Z
Indexed on
2010/05/20
5:40 UTC
Read the original article
Hit count: 337
I have recently started working on an app which has both Java and
native components. I am trying to generate trace information for both
components using Debug.startMethodTracing("myapp") and
Debug.startNativeTracing() alternately. However, both are behaving unexpectedly.
When I use Debug.startMethodTracing("myapp"), I can see a file /sdcard/myapp.trace being created but it is always empty no matter how long I run my app. When I use Debug.startNativeTracing() and start the emulator with the -trace <tracename> switch, I see a message saying "Trace started", but when I try to run my app, the
emulator crashes.
Am I missing something obvious here? How do I debug this problem?
© Stack Overflow or respective owner