The JSProfiling object provides some utilities to help process the results of TurbulenzEngine.stopProfiling.
See Profiling JavaScript for an overview of profiling.
Required scripts
The JSProfiling object requires:
/*{{ javascript("jslib/utilities.js") }}*/
Summary
Creates a flat array of profile nodes by merging all the common function calls in the passed in profile node tree.
Syntax
var rootNode = TurbulenzEngine.stopProfiling();
if (rootNode)
{
var array = JSProfiling.createArray(rootNode);
JSProfiling.sort(array);
// ...
}
Summary
Sorts the passed in array.
Syntax
JSProfiling.sort(array, propertyName, descending);