| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | 4 | public static function report(?string $unit = null, ?int $decimals = null): MemoryUsageReport |
|
| 44 | { |
||
| 45 | 4 | return new MemoryUsageReport( |
|
| 46 | 4 | memory_get_usage(), |
|
| 47 | 4 | memory_get_peak_usage(), |
|
| 48 | 4 | memory_get_usage(true), |
|
| 49 | 4 | memory_get_peak_usage(true), |
|
| 50 | 4 | $unit, |
|
| 51 | 4 | $decimals |
|
| 52 | ); |
||
| 55 |