Detect slow Javascript
<p>Is there any way to detect if Javascript code is taking more time to execute than it should? I don't want to run code, then determine the time it took, I want to determine if actively running code is going slower than it should, and stop that whole script.</p>
