Manual:$wgProfiler/ja

詳細
This setting is used to configure profiling of your MediaWiki installation.

利用できるキーは を参照してください. They include:


 * : E.g.  provides an Xhprof-backed profiler. There is also   which works with.
 * : Define one or multiple output methods. For multiple output methods at the same time, use an array of class names, one for each output type you want the profiler to generate. For example use the "ProfilerOutputText" profiler. 既定であなたが利用できる出力クラスは以下の通りです: ProfilerOutputDump, ProfilerOutputStats, ProfilerOutputText.

It expects that you have set the $wgStatsdServer configuration variable to the host (or host:port) of your statsd server.
 * ProfilerOutputStats outputs profiling data as StatsD metrics.

You can make the profiling data in HTML render as part of the page content by setting the 'visible' configuration flag:
 * ProfilerOutputText will output profiling data in the page body as a comment.

The files produced are compatible with the XHProf gui.
 * ProfilerOutputDump expects a $wgProfiler['outputDir'] telling it where to write dump files.
 * : true または false. If , output is displayed in HTML rendering (and not only in a comment).
 * : 正の整数. Profile every nth request.

For performance, the profiler is always disabled for CLI scripts as they could be long running and the data would accumulate. Use the '--profiler' parameter of maintenance scripts to override this.

例
For a rudimentary debug profiler: