Paul Paul - 1 year ago 131
Javascript Question

profiling anonymous javascript functions (chrome)

when performance profiling in chrome anonymous high-use functions are difficult to trouble-shoot when they are listed at the root of the call tree. is there a way to determine where an anonymous function was first instantiated?

Answer Source

Probably the easiest way is to put a console.trace() in your function.