-
-
Save tjfontaine/7490210 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dtrace -n 'pid$target::*Isolate*Throw*:entry { @[probefunc] = count(); }' -c './node t.js' | |
dtrace: description 'pid$target::*Isolate*Throw*:entry ' matched 5 probes | |
tick | |
tick | |
tick | |
tick | |
tick | |
tick | |
tick | |
tick | |
tick | |
tick | |
tick | |
dtrace: pid 63529 has exited | |
_ZN2v88internal7Isolate5ThrowEPNS0_6ObjectEPNS0_15MessageLocationE 11 | |
_ZN2v88internal7Isolate7DoThrowEPNS0_6ObjectEPNS0_15MessageLocationE 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var interval = setInterval(function() { | |
if (!count) | |
clearInterval(interval); | |
try { | |
throw new Error("Hello World"); | |
} catch (e) { | |
console.log('tick'); | |
} finally { | |
count--; | |
} | |
}, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment