/** * Get usage memory * * @param bool $isPeak * @return string */ public static function getMemory($isPeak = true) { if ($isPeak) { $memory = memory_get_peak_usage(false); } else { $memory = memory_get_usage(false); } $result = FS::format($memory, 2); return $result; }