Thread:Project:Support desk/ Novice Caching Advice Needed!/reply (6)

Edit (or create if it doesn't already exist) the file  to be <?php $wgProfiler['class'] = 'ProfilerSimpleText';

Then go to a page in your web browser. If you hit view source button (Often ctrl+U) and scroll to the bottom, there should be profiling info in an html comment. It would look something like: <!-- 414.08% 23.996792     7 - LocalisationCache::readJSONFile 258.91% 15.004392     4 - User::load 206.56% 11.970341     4 - LocalisationCache::getItem-load 204.29% 11.839178     4 - LocalisationCache::recache 164.73% 9.546220     4 - LocalisationCache::recache-extensions 146.08% 8.465817     2 - MediaWiki::main 100.00% 5.795164     1 - -total 95.07% 5.509557     2 - MediaWiki::performRequest 93.08% 5.394423     2 - MediaWiki::performAction 38.22% 2.215066   202 - DatabaseBase::query-master 36.64% 2.123584     2 - LocalisationCache::recache-write 15.21% 0.881610   155 - LocalisationCache::readPHPFile 11.78% 0.682594     2 - query-m: DELETE FROM `lNn_cache` WHERE lc_lang = 'X' 11.01% 0.637818     18 - query-m: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('X') 10.51% 0.608908     1 - OutputPage::output [...]

And would probably go on for a little while (The columns are percent of time, number of seconds, number of times the method happens, and name of the method.)