honestly i've found that scrolling around most any view, app,
wherever, spikes the CPU pretty much to the same levels your traceview
is showing.  perhaps you just never noticed it before?  or have you
specifically compared it against anything to see?

On Jan 19, 11:38 pm, b_t <[email protected]> wrote:
> The "adb shell vmstat" output is very interesting:
>
> When I don't do anything:
> procs  memory                       system          cpu
>  r  b    free mapped   anon   slab    in   cs  flt  us ni sy id wa ir
>  0  0   17788  43468 270420  19752    91  114    0   0  0  0 99  0  0
>  0  0   17788  43468 270420  19752    66   79    0   0  0  2 99  0  0
>  0  0   17796  43468 270420  19752    99   97    0   0  0  0 99  0  0
>  0  0   17796  43468 270420  19752    30   52    0   0  0  0 99  0  0
>
> When I start my app, and it builds the UI loads data:
>  0  0   17328  43884 270812  19760  1386 2082    0  22  0 13 65  0  0
>  1  0   17328  43884 270812  19760   500  549    0   9  0  5 86  0  0
>  0  0   17328  43884 270812  19760   560  726    0   6  0 11 83  0  0
>  0  0   17320  43884 270812  19760   518  676    0   7  0  3 91  0  0
>  0  0   17320  43884 270836  19760   685 1400    0  12  1  5 82  0  0
>  0  0   17304  44088 270888  19764   644  548    0   3  0 10 87  0  0
>  0  0   17260  43884 270884  19768   732 1624    0  27  0  7 66  0  0
>  0  0   17260  43884 270884  19768   396  364    0   1  0  0 99  0  0
>  0  0   17260  43884 270884  19768   500  640    0   8  0  0 93  0  0
>
> The view is ready, and I scroll the view:
> procs  memory                       system          cpu
>  r  b    free mapped   anon   slab    in   cs  flt  us ni sy id wa ir
>  1  0   17260  43884 270904  19756  1351 1774    0  40  0 12 48  0  0
>  1  0   17260  43884 270904  19756  1156 1459    0  91  0  8  1  0  0
>  1  0   17260  43884 270908  19760  1357 2328    0  89  0  8  4  0  0
>  3  0   17260  43884 270908  19756  1521 1836    0  82  0 18  0  0  0
>  1  0   17260  43884 270912  19756   652 1357    0  90  0 10  0  0  0
>  5  0   17260  44116 270936  19756   640 1278    0  78  0  8 14  0  0
>  1  0   17240  44116 270944  19756  2006 4781    0  32  0 21 47  0  0
>  0  0   17180  44112 271032  19756  1117 2266    0  24  4  4 68  0  0
>
> Why scrolling needs so many CPU-usage?
>
> On Jan 18, 9:55 am, b_t <[email protected]> wrote:
>
>
>
> > Hi,
>
> > my app hasperformanceproblems, and I don't understand why.
> > It has a not too complicated UI, andTraceviewdisplays the
> > following result (a row below an other is it's child):
>
> > METHOD                                                                  
> > Incl%   Calls+Recur
> > android/os/Handler.dispatchMessage                              90.5%   
> > 117+0
> > android/view/ViewRoot.handleMessage                     84.8%   7+0
> > android/view/ViewRoot.performTraversals                 83.7%   4+0
> > -----------------------------------
> > android/view/View.measure                                               
> > 75.3%   4+5639
> > android/widget/FrameLayout.onMeasure                    75.3%   4+10
> > android/view/ViewGroup.measureChildWithMargins  75.3%   4+3467
> > -----------------------------------
> > android/view/View.measure                                               
> > 75.3%   4+5639
> > android/widget/FrameLayout.onMeasure                    75.3%   4+10
> > android/view/ViewGroup.measureChildWithMargins  75.3%   4+3467
> > ....
>
> > There is no my class in these calls.
>
> > Can somebody help me? What should I do to solve this problem?
>
> > Thanks, T.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to