XHProf (hierarchial profiler for PHP) on Moodle

XHProf (hierarchial profiler for PHP) on Moodle

Visvanath Ratnaweera -
回帖数:1
Particularly helpful Moodlers的头像 Translators的头像
About http://docs.moodle.org/dev/Setting_up_xhprof_on_Moodle and http://www.open.ac.uk/blogs/XHProf/?page_id=46.

AFAIC http://www.open.ac.uk/blogs/XHProf/wp-content/uploads/2010/08/profiler.zip only supports sqlite and pgsql (see dbconn.inc.php). Am I right in assuming that there is no MySQL support?

P.S. Separated from the thread "poor performance for logged in users" https://moodle.org/mod/forum/discuss.php?d=222627#p970269.
回复Visvanath Ratnaweera

Re: XHProf (hierarchial profiler for PHP) on Moodle

Dan Poltawski -

Hi Visvanath,

I think its best to ignore the OU link, since that dates from before Moodle had its own integrated XHProf.

The Moodle integration comes out of the box and will work mysql, you only need to ensure that the XHProf php extension is installed and then enabling profiling.

One thing to watch out for on mysql is ensuring that max_packet_size is large enough because IIRC it stores the profiling data in the database.

Let us know how you get on?