Jump to content

Topic on Manual talk:Profiling/Flow

Configuring Profiling on MW 1.34, PHP7.2

1
Revansx (talkcontribs)

I'm trying to get the Profiling to work in my MW site. Adding the line:

$wgProfiler['class'] = 'ProfilerXhprof';

to my LocalSettings.php, however, when I do, it causes the following page error

Fatal error: Uncaught Exception: Profiling is already enabled. in /opt/htdocs/mediawiki/includes/libs/Xhprof.php:54 Stack trace: 
#0 /opt/htdocs/mediawiki/includes/profiler/ProfilerXhprof.php(79): Xhprof::enable(0, Array) 
#1 /opt/htdocs/mediawiki/includes/profiler/Profiler.php(87): ProfilerXhprof->__construct(Array) 
#2 /opt/htdocs/mediawiki/includes/db/MWLBFactory.php(95): Profiler::instance() 
#3 /opt/htdocs/mediawiki/includes/ServiceWiring.php(206): MWLBFactory::applyDefaultConfig(Array, Object(MediaWiki\Config\ServiceOptions), Object(ConfiguredReadOnlyMode), Object(EmptyBagOStuff), Object(ReplicatedBagOStuff), Object(WANObjectCache)) 
#4 /opt/htdocs/mediawiki/includes/libs/services/ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(Object(MediaWiki\MediaWikiServices)) 
#5 /opt/htdocs/mediawiki/includes/libs/services/ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService('DBLoadBalancerF...') 
#6 /opt/htdocs/mediawiki/includes/MediaWikiServices.php(580): Wikimedia\Services\Servic in /opt/htdocs/mediawiki/includes/libs/Xhprof.php on line 54

To the best of my knowledge, I am not enabling Profiling anywhere else. Is profiling enabled by default in MW 1.34?

Reply to "Configuring Profiling on MW 1.34, PHP7.2"