Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Deep Profiling jQuery Apps. Neat plugin from John Resig that monkey-patches most (all?) of the jQuery methods to build up a detailed profile of which methods are being used by a given page.

Tagged , , ,

1 comment

  1. I think all of them, yeah. Well, at least all of the traditionally-chainable methods. Currently methods like jQuery.each(), jQuery.ajax(), etc. aren't touched.

    I've just finished up a full stack-trace of jQuery code (usable on plugins as well) allowing you to introspect any jQuery method which I'll be releasing soon. I'm working on a UI for it - should be quite fun. I'm already getting reports back from people who've found slow patches in their sites and have worked around the bottlenecks.

    It's interesting how much Firebug falls down here. Since it gets too specific (listing all functions indiscriminately) it makes it impossible to use for most profiling situations.

    Another interesting point to note: I'm fairly certain that jQuery is the only framework capable of this sort of introspection and reporting - due to its flat API design and plugin capabilities.

    John Resig - 16th June 2008 19:32 - #

Comments are closed.
A django site