Android: Performance Testing<br />-Akshay Dashrath<br />
Need Speed?<br />
What about?<br />
Tools<br />Analysing logs (Trace View)<br />Heap Dump Analysis<br />Debug class<br />
Trace View<br />Graphical Tool to analyse execution logs<br />
// start tracing to &quot;/sdcard/test.trace&quot;    Debug.startMethodTracing(“test&quot;);   // ...    // stop tracing  ...
Issues<br />If a thread exits during profiling, the thread name is not emitted;<br />The VM reuses thread IDs. If a thread...
Instruction Count<br />
Heap Dumps<br />C:/adb shell<br />C:/ chmod 777 /data/misc – In order to make the /data/misc directory writeable<br />C:/e...
Questions?<br />
Upcoming SlideShare
Loading in …5
×

Performance Testing on Android

7,806 views
7,604 views

Published on

1 Comment
0 Likes
Statistics
Notes
  • Can u please explain in detail about the tool test procedure. So that we can get some better understanding....! :)
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total views
7,806
On SlideShare
0
From Embeds
0
Number of Embeds
24
Actions
Shares
0
Downloads
171
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Performance Testing on Android

  1. 1. Android: Performance Testing<br />-Akshay Dashrath<br />
  2. 2. Need Speed?<br />
  3. 3. What about?<br />
  4. 4. Tools<br />Analysing logs (Trace View)<br />Heap Dump Analysis<br />Debug class<br />
  5. 5. Trace View<br />Graphical Tool to analyse execution logs<br />
  6. 6. // start tracing to &quot;/sdcard/test.trace&quot;    Debug.startMethodTracing(“test&quot;);   // ...    // stop tracing    Debug.stopMethodTracing();<br />adb pull /sdcard/test.trace C:/<br />traceview C:/trace.test<br />
  7. 7.
  8. 8. Issues<br />If a thread exits during profiling, the thread name is not emitted;<br />The VM reuses thread IDs. If a thread stops and another starts, they may get the same ID.<br />.trace files larger than 8MB cannot be read by the Viewer<br />
  9. 9. Instruction Count<br />
  10. 10. Heap Dumps<br />C:/adb shell<br />C:/ chmod 777 /data/misc – In order to make the /data/misc directory writeable<br />C:/exit<br />C:/ adb shell ps<br />C:/ adb shell kill -10 1234 -------Example<br />C:/ adb pull /data/misc/heap-dump-tm-pid.hprofaddress.hprof<br />C:/ hprof-conv heap-dump-tm-pid.hprof4mat.hprof<br />
  11. 11.
  12. 12.
  13. 13. Questions?<br />

×