NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Debugging slows down execution remarkably


Joined: 04 Jan 2007
Posts: 18
Reply with quote
My script takes 0,5s to run without the debugger extension loaded. After enabling the extension and not yet debugging it takes 2,4s. When I debug/profile it takes 4,6s (the profiler show the total time 2s). I use lighttpd 1.4.15 with CGI PHP 5.2.3, PHPed 5.0.1.

Where is the problem?
View user's profileFind all posts by tetikrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8239
Reply with quote
does your script output a lot of errors/warnings/or notices? It may slowdown execution because debugger has to capture and store them all.
Regarding profiler, it's quite accurate and could not be that wrong. Check for example with function sleep or usleep (if you have it)

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Debugging slows down execution remarkably
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