Skip to content

Instantly share code, notes, and snippets.

@FGRibreau
Created July 30, 2010 16:36
Show Gist options
  • Save FGRibreau/500850 to your computer and use it in GitHub Desktop.
Save FGRibreau/500850 to your computer and use it in GitHub Desktop.
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();
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