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

Londroid Akshay Performance

on

  • 1,550 views

 

Statistics

Views

Total Views
1,550
Views on SlideShare
1,294
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 Londroid Akshay Performance Presentation Transcript

  • Android: Performance Testing
    -Akshay Dashrath
  • Need Speed?
  • What about?
  • Tools
    Analysing logs (Trace View)
    Heap Dump Analysis
    Debug class
  • Trace View
    Graphical Tool to analyse execution logs
  • // start tracing to "/sdcard/test.trace"    Debug.startMethodTracing(“test");   // ...    // stop tracing    Debug.stopMethodTracing();
    adb pull /sdcard/test.trace C:/
    traceview C:/trace.test
  • 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
  • Instruction Count
  • 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
  • Questions?