I am trying to get a trace of an Android device but I am getting
ERROR: emulator tracing not enabled
How do I get a trace using startNativeTracing() for a real device?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to the SDK, You can’t use it in real device. For this to work requires running everything inside the qemu emulator; otherwise, this method will have no effect. The trace file is specified on the command line when the emulator is started. For example, the following command line:
If you want to trace the code in real hardware,
startMethodTracingmethod is the one to use. However, it doesn’t trace the native code.