2 namespace TYPO3\CMS\Core\Utility;
27 public static function peakMemoryUsage()
29 $peakUsage = memory_get_peak_usage(
true);
31 if (is_double($memoryLimit) && $memoryLimit != 0) {
32 if ($peakUsage / $memoryLimit >= 0.9) {
40 $registry->set(
'core',
'reports-peakMemoryUsage', $data);