• Save
Londroid Akshay Performance
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Londroid Akshay Performance

on

  • 1,578 views

 

Statistics

Views

Total Views
1,578
Views on SlideShare
1,322
Embed Views
256

Actions

Likes
0
Downloads
0
Comments
0

5 Embeds 256

http://skillsmatter.com 209
http://smash 42
http://www.slideshare.net 3
http://webcache.googleusercontent.com 1
http://translate.googleusercontent.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Londroid Akshay Performance Presentation Transcript

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