instrumentation-sample directory. Program points that can be hooked are function definition, invocation, and exit. Closure supports instrumentation internally as-is, this fork makes it more useful. Since Closure is already a popular part of JS build chains, it was an attractive target to add this feature to. I used this code as part of a project for JS hardening (ZigZag).
Update: The code has been merged into the official Closure repository.
How to use the instrumentation feature:
instrumentation_template FILE is the new option. The specified file contains the code that will be added to the JS file.</p>