'calculatedMemory', '%' => $result, 'start']); // @codeCoverageIgnore } if( ! isset(Properties::$memtests[$resend]) ) { throw new Exception\InvalidParameterException(NULL, ['&' => 'calculatedMemory', '%' => $result, 'end']); // @codeCoverageIgnore } return Properties::$memtests[$resend] - Properties::$memtests[$restart]; } /** * Usage memory * * @param bool $realMemory = false * * @return int */ public static function normal(bool $realMemory = false) : int { return memory_get_usage($realMemory); } /** * Usage max memory * * @param bool $realMemory = false * * @return int */ public static function maximum(bool $realMemory = false) : int { return memory_get_peak_usage($realMemory); } }