Manual talk:Profiling
Add topicAppearance
Latest comment: 4 years ago by Revansx in topic Configuring Profiling on MW 1.34, PHP7.2
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Removed
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Configuring Profiling on MW 1.34, PHP7.2
[edit]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? Revansx (talk) 00:15, 22 January 2021 (UTC)