Thursday, November 3, 2011

Android Application Efficient Development - Trace View

Traceview has been integrated into Eclipse plug-in with DDMS. The start/stop profiling button will open traces in Eclipse directly instead of launching the standalone tool.

Inclusive Time:
     The time spent in the method plus the time spent in any called functions.
Exclusive Time:
     The time spent in the method.

  • A timeline panel -- describes when each thread and method started and stopped

Each thread’s execution is shown in its own row, with time increasing to the right. Each method is shown in another color (colors are reused in a round-robin fashion starting with the methods that have the most inclusive time). The thin lines underneath the first row show the extent (entry to exit) of all the calls to the selected method.
  • A profile panel -- provides a summary of what happened inside a method.
The inclusive and exclusive times (as well as the percentage of the total time).The calling methods as "parents" and called methods as "children." When a method is selected (by clicking on it), it expands to show the parents and children. Parents are shown with a purple background and children with a yellow background. The last column in the table shows the number of calls to this method plus the number of recursive calls. The last column shows the number of calls out of the total number of calls made to that method. In this view, we can see that there were 14 calls  looking at the timeline panel shows that one of those calls took an unusually long time. If any doubts please put a comment.

No comments:

Post a Comment