手册:Profileinfo.php

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Profileinfo.php and the translation is 56% complete.
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎polski • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語

详情

Allow users to see the profiling information that are stored in the database.

To save the profiling information in the database (required to use this script), you have to modify StartProfiler.php to use the Profiler class and not the stub profiler which is enabled by default. 您还需要在LocalSettings.php 设置$wgProfiler 来强制分析器保存在数据库中,并将maintenance/archives/patch-profiling.sql运用于数据库。

To enable the profileinfo.php itself, you'll need to set $wgEnableProfileInfo to true in LocalSettings.php. See also the help on profiling.

参见