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?
Asked
Active
Viewed 2,643 times
1
-
If all else fails, use the command line tool. Example here: http://bigflake.com/systrace/ – fadden Sep 10 '13 at 17:03
2 Answers
1
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.

Ye Lin Aung
- 11,234
- 8
- 45
- 51
-
I've read about this. But i want to enable the system traces(like some traces in activitythread.handlermessage) rather than my own traces. In android 4.2 I can enable system trace dynamically. is there any way to do the same in android 4.3? – user2539662 Sep 05 '13 at 09:13
-
Ye Ling Aung - thanks for that info; those technical details are not shown on http://developer.android.com/tools/debugging/systrace.html – Someone Somewhere Sep 30 '13 at 21:30
1
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.

cchana
- 4,899
- 3
- 33
- 43

Wayne Wang
- 31
- 3