Hello Jan,

> require using assembler.) I would like to profile on the Palm, but don't
> know how to do it. (I don't expect that emulator profiling would provide
> more relevant results. Or am I wrong?)
>

If you mean by profiling measuring the cpu-time needed by a function, I suggest
you using TimGetTicks to get the execution time needed for a
function/algorithm  (I did it using the emulator too - but the results compared
to a real device may differ a lot (due to emulation aspects.... ))
f.e.:
u32 t0,t1,time_used;
t0=TimGetTicks();
Render_100000Polygons_World();
t1=TimGetTicks);
time_used=t1-t0;
printf("%i ticks needed to execute subroutine",time_used);


Executing this f.e. 100 times (of course with the same input values) and
summing up the time_used and dividing the result by 100, may (will) give a bit
more exact result.


Best regards,
Carsten.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to