Add a little more infrastructure for ajax profiling