Speeding up AppleScripts

I have complex script which has repeat loop, but i would like it to go thru loop faster. So i need to find where it spends most of the time.

I was thinking to create AppleScript which puts timing code between each rows of code, then visualizes result some how.

set timing to {}
repeat until whateva
	set end of timing to ((MP Ticks) / 100)
	my_scripts_code_is_here
	set end of timing to ((MP Ticks) / 100)
	my_scripts_code_is_here
	set end of timing to ((MP Ticks) / 100)
	my_scripts_code_is_here
end repeat
timing

Is there anything like this already available? I just installed Developer tools. Maybe Developer tools have some feature that does this?

post #4 here is what I use: http://bbs.macscripter.net/viewtopic.php?id=17015

So Developer Tools dont have any tool that helps to find what row consumes most CPU cycles?

And no one has AppleScript which puts these timing codes between each row?