the Optimizer, I built today another tool inspired by Intel's VTune!
It's called Analyzer
Before I forget something:
Download: Analyzer
And take a look at the help file!
So what's its purpose?
It's an IDE plug-in that modifys the PB file compiled with Compile/Run so
that (nearly) every line is tested for its runtime! After you quit your program
there will be an analysis.txt in the source directory which shows you the
time critical lines of code in your code
There will be interesting results like:
Code: Select all
Line 71: Time 10918 StartDrawing(ScreenOutput())
Line 38: Time 3951 OpenScreen(#SCREEN_WIDTH, #SCREEN_HEIGHT,32,Test)
Line 1: Time 127 InitSprite()
Line 27: Time 76 DisplayTransparentSprite(2,newposx,#Posy)
Line 85: Time 75 Kraftaufwand()
Line 74: Time 54 DrawText(Kraft + a$)
Line 69: Time 46 ClearScreen(125, 125, 125)
Line 88: Time 30 DisplayTransparentSprite(2,#Posx,#Posy)
Line 89: Time 11 DisplayTransparentSprite(1,MouseX(),MouseY())
Line 68: Time 11 FlipBuffers()
waste your awfully important time in senseless optimizations
There are some other possibilities of measure the time with special kinds
of comments, read the help file
So have fun and make some great and fast programs!
Source included!
greetz
Remi