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?