Allow clientProbes to be passed on AJAX calls

Currently the mPt.t timings are only copied and passed in if it is the current/main request.

I was hoping that I could profile client times of an AJAX response process. I believe that this would make a lot of sense for modern ajaxy applications.

Moving the the below snippet outside the current request check will do it.

if (window.mPt) {
                clientProbes = mPt.t;
                for (j = 0; j < clientProbes.length; j++) {
                    clientProbes[j].d = clientProbes[j].d.getTime();
                }
                mPt.t = [];
            }

What do you think?

Thanks in advance,

Iain

I agree with this, would you like to give it a shot?

I would love to. I’m away just now, I will be back in a couple of days and write and test the change.

Thanks Sam.

hi Sam,

I’ve put in a pull request with this. Let me know what you think.

Thanks,

Iain