Profiler - measure time not (or) quantity!

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Kazmirzak
User
User
Posts: 92
Joined: Fri Jun 18, 2004 5:44 pm
Location: Germany

Profiler - measure time not (or) quantity!

Post by Kazmirzak »

Hi!

The profiler tool is a really great step!! It only has one weakness: it measures quantity, but lacks quality. That means:

If my program runs slow I'm probably not able to reduce the amount of code processed BUT I could enhance the speed of several lines (string slow, int=fast) Profiler won't help me much.

Now that: if profiler would measure how many milliseconds tick away during a line (after lets say 1000 calls of the line the rounding error will disappear), you could perfectly improve your code and see the difference between:

Code: Select all

s$=left(s$,4)+"x"+right$(s$,len(s$-5))        ==> PurX Basic  10ms (probably)
PokeB(@s$+5,88 )                                             ==> PurX Basic     1ms
THAT WOULD ROCK!!

P.S. that combines with the development of the new sharp Millisecs() command :-)
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

quidquid Latine dictum sit altum videtur
Kazmirzak
User
User
Posts: 92
Joined: Fri Jun 18, 2004 5:44 pm
Location: Germany

Post by Kazmirzak »

sorry... I see it now :-/
Post Reply