1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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();