Version updates!

Started by EgonOlsen, March 28, 2010, 09:47:50 PM

Previous topic - Next topic

dl.zerocool

#90
What do you mean by profile (Does it mean examine ? sry my mother tongue is French & Portuguese) , and how can I do that ?
Have you a link to some tutorial or some explanation about it ?

[Edit]

I can't share yet the source code, but it will be shared soon as an Google project available trough svn.

But I need firstly to made the presentation to my classroom with my classmates and co-workers.
Because teachers judge us on the presentation and until then the code remains the school property.

And then I'll have my annually exams so I'll be very short in time to do this things.

But everything, included all resources will be shared asap.

raft

right, profiling is analysing the program while running.

in eclipse, open the android devices tab (window|show view|other|android|devices) and you will see profiling options there. your phone need to be connected to your computer

dl.zerocool

Okay is on the DDMS view, I already use this,

but it only profiles the memory, objects created etc..

What I would like is to see which function is time consuming on CPU.

Which functions are called too often.

Without having to print each time I make a call...

dl.zerocool

I'm going to use this to view what is time consuming :)
Thank you for the word "profile / profiling" the only know I knew was profiler... who in my head is more related
to police tv shows... It's much more easy to find answer to my questions now.

http://developer.android.com/guide/developing/tools/traceview.html


raft

#94
Quote from: dl.zerocool on June 08, 2010, 03:38:35 PM
but it only profiles the memory, objects created etc..
What I would like is to see which function is time consuming on CPU.
it gives the function times in detail ???

indeed it generates the same report in your post. but without the need to invoke any code..

EgonOlsen

I'm still using the 1.5 SDK/plugin...and i can't find any useful profiling option in that device tab... ???

raft

that's weird ??? we are talking about the same plugin for eclipse 3.5, right ?
http://developer.android.com/sdk/eclipse-adt.html

maybe it's only available for linux ?

here is a screenshot:

EgonOlsen

Yes, that one. But as said, i'm still using the 1.5 version because it was difficult enough to make it work with Samsung and don't want to have to do it again right now. This is all there is:

raft

mm, but AFAIK the plugin is not bound to any SDK version..

EgonOlsen

No idea, but the ddms (which i'm usually using) in the SDK distribution offers exactly the same options. Anyway, i don't miss it much...profiliers are for the weak... ;D

raft

if you say so.. chances arent that good but you may be missing the opportunity to double the performance ;D

EgonOlsen

Unlikely... ;)...but maybe i'm going to give the new SDK a go on another machine when i find the time. I just don't want to lose phone support on my main machine, which is why i'm a but more cautious with upgrading than usual. It was a pain in the arse to get the USB connection to the phone working, because the driver isn't really good...it might have been improved, if the new SDK provides it's own driver for the Galaxy (which the old didn't), but i'm not sure about this...

raft

why not give linux (ubuntu for instance) a try ? it was a matter of plug and play with G1.

EgonOlsen

The G1 is a matter of plug and play on Windows too...the Samsung needed some drivers from Samsung that were difficult to install. Linux isn't really an option for me. I tried it several times, installed Ubuntu for friends of mine and such and i just can't stand Linux on the desktop.

EgonOlsen

Another update that makes VBOs behave nicer and that fixes a flaw in the object compiler that caused too many Integer-instances being created where actually none were needed.