Profiling

<< Click to Display Table of Contents >>

Navigation:  Debugging >

Profiling

Script execution can be profiled using Console Time and TimeEnd methods.

Call Time before profiled code and TimeEnd after, with the same text key.

Example:

 
Console.Time('MyExecution time is');
MyFunction();
Console.TimeEnd('MyExecution time is');

 

Result will be passed to the script debugger object via OnConsoleLog method.