how to enable trace in android 4.3 as in android 4.2

2.6k views Asked by At

In android 4.2, go to the Settings->Developer options->Enable trace, I can enable the traces and show them in the systrace output chart. But in android 4.3, the enable trace option is removed, so how can I enable traces?

2

There are 2 answers

2
Ye Lin Aung On

From the Official Doc.

Systrace events for apps

Android 4.3 adds the Trace class with two static methods, beginSection() and endSection(), which allow you to define blocks of code to include with the systrace report. By creating sections of traceable code in your app, the systrace logs provide you a much more detailed analysis of where slowdown occurs within your app.

For information about using the Systrace tool, read Analyzing Display and Performance with Systrace.

0
Wayne Wang On

If you use latest eclipse in adt-bundle-linux-x86_64-20130729.zip, you can find the systrace options like Android 4.2 in the DDMS perspective window in eclipse.

Just like the image in this blog.