function x() { n; } | |
function f() { | |
try { x(); } catch(ex) {} | |
} | |
var g = newGlobal(); | |
g.parent = this; | |
g.eval("new Debugger(parent).onExceptionUnwind = function () {};"); | |
enableSPSProfiling(); | |
try { | |
enableSingleStepProfiling(); | |
} catch (e) { | |
// Not all platforms support single-step profiling. | |
} | |
f(); | |
f(); | |
f(); |