NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
dbg_get_all_module_names() and dbg_get_profiler_results()


Joined: 14 Feb 2005
Posts: 5
Reply with quote
Hello.
Today I downloded prof_results.php from DBG site and play a little with it.

I followed the INSTALL inscructions on the script, appending it to auto_append_file on php.ini, and tried different things, but dbg_get_profiler_results() doesn't seem to work.

When debugging I wached for the $dbg_prof_results after calling:

dbg_get_profiler_results(&$dbg_prof_results)

which gave me an array of 6 positions:
"mod_no"
"line_no"
"hit_count"
"tm_max"
"tm_min"
"tm_sum"

All of them marked as array, but 0 length.

One more thing, I'm not sure what I'm doing wrong with dbg_get_all_module_names(). No matter what number of parameters I give to it, there is aways a warning:

Warning: Wrong parameter count for dbg_get_all_module_names()

If I call like "dbg_get_all_module_names(&$modules)" I get the $modules all right, but the warning aways shows up.

Using DBG v2.11.32.
View user's profileFind all posts by tsilvaSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
these functions are supposed to produce an output only if debugger or profiler session is initiated.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 04 Apr 2005
Posts: 1
Reply with quote
How to enable it?

I use http://myserver/test.php?DBGSESSID=1;p=1
and it still produce no output.

Using: PHP/4.3.10
View user's profileFind all posts by ebeliSend private message
dbg_get_all_module_names() and dbg_get_profiler_results()
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