NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Checking performance of website


Joined: 27 Nov 2009
Posts: 54
Reply with quote
Hi,

I have a PHP site which is directly accessed by index.php?task=whatever. Ajax routines are similar, but are accessed by ajax.php?task=whatever.

I would like to determine where my script is taking a long time.

I could use "Run Profiler" for the first entry location, but cannot seem to browser to another page and run profiler on that server call, or run it on an ajax server call.

How do I do so? Thank you
View user's profileFind all posts by NotionCommotionSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
If you enable Debug Session feature, all related http requests will be profiled and/or debugged depending on initial function you invoke. Under "related" we understand requests that issue the cookies obtained from original request.
For example -- if you open two instance of browser using Windows Explorer, their requests will be unrelated, but if you open one window from another -- they will be certainly related.
Depending on ajax internals, the requests may be related and may be not. You can check $_COOKIE['DBGSESSID'] content to make sure it is a) set and b) contains p=1 flag, like this: DBGSESSID=1@localhost;p=1
Then the profiler resupts will be accessible with [<-] [->] arrows.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Checking performance of website
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic