MediaWiki
REL1_35
ProfilerOutputDump.php
Go to the documentation of this file.
1
<?php
28
class
ProfilerOutputDump
extends
ProfilerOutput
{
29
30
protected
$suffix
=
".xhprof"
;
31
37
public
function
canUse
() {
38
if
( empty( $this->params[
'outputDir'
] ) ) {
39
return
false
;
40
}
41
return
true
;
42
}
43
44
public
function
log
( array $stats ) {
45
$data = $this->collector->getRawData();
46
$filename = sprintf(
"%s/%s.%s%s"
,
47
$this->params[
'outputDir'
],
48
uniqid(),
49
$this->collector->getProfileID(),
50
$this->suffix );
51
file_put_contents( $filename,
serialize
( $data ) );
52
}
53
}
serialize
serialize()
Definition
ApiMessageTrait.php:138
ProfilerOutputDump
Definition
ProfilerOutputDump.php:28
ProfilerOutputDump\log
log(array $stats)
Log MediaWiki-style profiling data.
Definition
ProfilerOutputDump.php:44
ProfilerOutputDump\$suffix
$suffix
Definition
ProfilerOutputDump.php:30
ProfilerOutputDump\canUse
canUse()
Can this output type be used?
Definition
ProfilerOutputDump.php:37
ProfilerOutput
Base class for profiling output.
Definition
ProfilerOutput.php:27
includes
profiler
output
ProfilerOutputDump.php
Generated on Sat Apr 6 2024 00:07:40 for MediaWiki by
1.9.8