Stick this in your page, call $.profile.start() to start profiling calls to $(selector), and then $.profile.done() to stop profiling