Talk:WikimediaDebug

From Wikitech
(Redirected from Talk:X-Wikimedia-Debug)
Jump to navigation Jump to search

Extension

The ?forceprofiling is not a default of MediaWiki, were can we find the extension source code that enables this parameter? — Preceding unsigned comment added by YOUR1 (talkcontribs) 12:12, 18 December 2018 (UTC)

It's not an extension. The parameter is handled in profiler.php, which Wikimedia has configured to be loaded via PHP's auto-prepend-file ini setting (more specifically, auto-prepend-file is set to load PhpAutoPrepend.php, which in turn loads profiler.php) to turn on XHProf before MediaWiki starts loading. That file also indirectly sets $wgProfiler so the profiling data later gets handled properly by MediaWiki. Anomie (talk) 14:26, 18 December 2018 (UTC)