 |
 | howto profile Drupal based site? |  |
 |
 | |  |
 | howto profile Drupal based site? |  |
 |
 | |  |
Site Admin
Joined: 13 Jul 2003 |
Posts: 8361 |
|
|
 |
Posted: Sun Feb 17, 2008 9:16 pm |
|
 |
 |
 |
 |
if Debug Session option was checked, DBGSESSID would be with c=1 flag, not with c=0.
Quote: | BTW: I also have APC installed, do you think this is causing the problem? |
sure, it bypassed the profiler.
If you need to profile php code, comment out all php caches and restart web server.
|
_________________ The PHP IDE team
|
 |
 | |  |
Joined: 18 Feb 2008 |
Posts: 6 |
|
|
 |
Posted: Sun Feb 17, 2008 10:18 pm |
|
 |
 |
 |
 |
dmitri wrote: | if Debug Session option was checked, DBGSESSID would be with c=1 flag, not with c=0.
Quote: | BTW: I also have APC installed, do you think this is causing the problem? |
sure, it bypassed the profiler.
If you need to profile php code, comment out all php caches and restart web server. |
I did double check the debug session option and it is checked, still c=0 is showing. But when I did manually change the c=1 in the url, all the successive calls have been profiled. Thanks for the headsup. Do you know why the debug session option is not being effective in the settings window. (C is for cookie, P is for profiler and what is D stand for in the URL?)
Also you mentioned that the php opcode extensions should be uninstalled, does it apply to the php version installed on my WAMP stack or is it in the php version that comes with phped?
Thanks for the feedback in advance. You are really being helpful.
|
|
 |
 | |  |
Site Admin
Joined: 13 Jul 2003 |
Posts: 8361 |
|
|
 |
Posted: Mon Feb 18, 2008 9:26 am |
|
 |
 |
 |
 |
Quote: | what is D stand for in the URL? |
it triggers debugger.
Quote: | Also you mentioned that the php opcode extensions should be uninstalled, does it apply to the php version installed on my WAMP stack or is it in the php version that comes with phped? |
You need to uninstall or disable opcode cache if you want to work with debugger and profiler.
Suppose you've run a file without profiler with APC turned on (same goes to any other opcode cache). So the file is cached by APC as is, without debug info. Next time you try to run the same file with debugger or profiler, opcodes will be picked up from the cache and because they are produced without debug info, neither debugger nor profiler will work.
|
_________________ The PHP IDE team
|
 |
 | |  |
 |
 | |  |
 |
 | |  |
Joined: 18 Feb 2008 |
Posts: 6 |
|
|
 |
Posted: Mon Feb 18, 2008 10:19 am |
|
 |
 |
 |
 |
dmitri wrote: | Debug session turns on only if you run debugger. In other words, it works only together with flag d=1. I did not think that it's that useful to have profiler working for sessions. Nevertheless feel free to post feature request to the appropriate forum. |
dmitri: Thanks for following up so quickly. To be frank, this is the first time I am looking into debugging and profiling option for php. I am not quite sure how to debug but rather liked the profiling option as it shows the time it took for all the functions. At this point of time not knowing completely about debugging (particularly step over, step into and other stuff) what I am trying to acomplish is to look at profiler window next to the out put window for all the page requests that I do in the out put window, how can this be accomplished?
I will go through the material at your website about debugging and profiling 101. By any chance do you happen to know any weblink that points me to the right direction to start understanding about debugging?
|
|
 |
 | |  |
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
|
|
|
|  |