X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fprofiler%2Foutput%2FProfilerOutputStats.php;h=bb8655183c4ad55fd157745802a5cb4293172b47;hb=7b5f08e703f8b60c5311337fa624f8557d73bc32;hp=52aa54acca66f44291b9a6d62849d93957113275;hpb=bd96b3092ddf09cf3acfeb54544ff6b6b8c54a25;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/profiler/output/ProfilerOutputStats.php b/includes/profiler/output/ProfilerOutputStats.php index 52aa54acca..bb8655183c 100644 --- a/includes/profiler/output/ProfilerOutputStats.php +++ b/includes/profiler/output/ProfilerOutputStats.php @@ -21,6 +21,7 @@ * @file * @ingroup Profiler */ +use MediaWiki\MediaWikiServices; /** * 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'] : ''; - $contextStats = $this->collector->getContext()->getStats(); + $contextStats = MediaWikiServices::getInstance()->getStatsdDataFactory(); foreach ( $stats as $stat ) { $key = "{$prefix}.{$stat['name']}";