Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 6 |
CRAP | |
0.00% |
0 / 1 |
| ProfilerStub | |
0.00% |
0 / 6 |
|
0.00% |
0 / 6 |
42 | |
0.00% |
0 / 1 |
| scopedProfileIn | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getFunctionStats | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getOutput | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| close | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| logData | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| logDataPageOutputOnly | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * @license GPL-2.0-or-later |
| 4 | * @file |
| 5 | */ |
| 6 | |
| 7 | namespace MediaWiki\Profiler; |
| 8 | |
| 9 | /** |
| 10 | * Stub profiler that does nothing. |
| 11 | * |
| 12 | * @ingroup Profiler |
| 13 | */ |
| 14 | class ProfilerStub extends Profiler { |
| 15 | /** @inheritDoc */ |
| 16 | #[\NoDiscard] |
| 17 | public function scopedProfileIn( $section ): ?SectionProfileCallback { |
| 18 | return null; // no-op |
| 19 | } |
| 20 | |
| 21 | /** @inheritDoc */ |
| 22 | public function getFunctionStats() { |
| 23 | return []; |
| 24 | } |
| 25 | |
| 26 | /** @inheritDoc */ |
| 27 | public function getOutput() { |
| 28 | return ''; |
| 29 | } |
| 30 | |
| 31 | public function close() { |
| 32 | } |
| 33 | |
| 34 | public function logData() { |
| 35 | } |
| 36 | |
| 37 | public function logDataPageOutputOnly() { |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /** @deprecated class alias since 1.46 */ |
| 42 | class_alias( ProfilerStub::class, 'ProfilerStub' ); |