Stupid simple javascript instrumentation

I’ve blogged about this little “instrumentation” approach before, but here’s a the final, simple result (note: in this case, “instrumentation” really just means wrapping each method, tracking the start/end times and reporting the overall runtime for each method in milliseconds..nothing fancier…stupid simple).

You can find the complete code, along with 4 examples run to demonstrate here.