Edit

GetProfile ()

Result type:  string

Definition:  Obtains a report on the running time of each line of the script that the function is called from. Every line with a running time of 1ms or more is included. Use this function to diagnose performance problems in your script (i.e to answer the question: "what part of my script is taking so long?").

Note:  Using GetProfile has a performance impact itself, so don't leave it in scripts that you want to run as fast as possible. In v9, the MWScript runtime will only collect performance data if the GetProfile function is encountered by the compiler.