- import android.os.Debug;
- Debug.startMethodTracing("tag-name");
- Debug.stopMethodTracing();
- Run the Java application
- Fetch out the profiling output file on SD card (SD card is needed) root folder: tag-name.trace
- traceview tag-name.trace to open the traceview window
For more information about traceview window, refer to http://developer.android.com/guide/developing/tools/traceview.html
No comments:
Post a Comment