I couldn't find any docu on "Profiling Scripts"?
Issue 1
New stack with new button, new field, save the stack. Use any simple script.
Code: Select all
on mouseUp
repeat 100
put "A" into fld 1
end repeat
end mouseUp
2. Push the button one or more times.
3. Stop Profiling Scripts.
4. Close the "Script Profile" window.
5. Try to edit the script.
You can't because of
execution error at line 1528 (Object: can't set script while it is executing), char 1.
Editing the script is possible not before restarting LiveCode.
Issue 2
Most of my scripts use "lock messages" for a considerable speed up. Now try this:
Code: Select all
on mouseUp
lock messages ## <----------
repeat 100
put "A" into fld 1
end repeat
unlock messages
end mouseUp
2. Push the button one or more times.
3. Stop Profiling Scripts.
You'll get an empty profiling report.