dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Rename autonym for 'no' from 'norsk bokmål' to 'norsk'"
[lhc/web/wiklou.git]
/
includes
/
profiler
/
output
/
ProfilerOutputStats.php
diff --git
a/includes/profiler/output/ProfilerOutputStats.php
b/includes/profiler/output/ProfilerOutputStats.php
index
52aa54a
..
bb86551
100644
(file)
--- a/
includes/profiler/output/ProfilerOutputStats.php
+++ b/
includes/profiler/output/ProfilerOutputStats.php
@@
-21,6
+21,7
@@
* @file
* @ingroup Profiler
*/
* @file
* @ingroup Profiler
*/
+use MediaWiki\MediaWikiServices;
/**
* ProfilerOutput class that flushes profiling data to the profiling
/**
* ProfilerOutput class that flushes profiling data to the profiling
@@
-38,7
+39,7
@@
class ProfilerOutputStats extends ProfilerOutput {
*/
public function log( array $stats ) {
$prefix = isset( $this->params['prefix'] ) ? $this->params['prefix'] : '';
*/
public function log( array $stats ) {
$prefix = isset( $this->params['prefix'] ) ? $this->params['prefix'] : '';
- $contextStats =
$this->collector->getContext()->getStats
();
+ $contextStats =
MediaWikiServices::getInstance()->getStatsdDataFactory
();
foreach ( $stats as $stat ) {
$key = "{$prefix}.{$stat['name']}";
foreach ( $stats as $stat ) {
$key = "{$prefix}.{$stat['name']}";