-
-
Save stoyanvi/915d51543bdaeff8130d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function toBeProfiled(){ | |
throw new Error('Show me the stack!'); | |
//Do something here | |
} | |
function launchApp(){ | |
function doThing(){ | |
console.debug(toBeProfiled); | |
toBeProfiled(); | |
//Do something here | |
} | |
function doAnotherThing(){ | |
toBeProfiled(); | |
//Do something here | |
alert('OK'); | |
} | |
doThing(); | |
doAnotherThing(); | |
} | |
launchApp(); |
This file contains hidden or 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
function toBeProfiled(){ | |
console.log(new Error('Show me the stack!')); | |
//Do something here | |
} | |
function launchApp(){ | |
function doThing(){ | |
console.debug(toBeProfiled); | |
toBeProfiled(); | |
//Do something here | |
} | |
function doAnotherThing(){ | |
toBeProfiled(); | |
//Do something here | |
alert('OK'); | |
} | |
doThing(); | |
doAnotherThing(); | |
} | |
launchApp(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment