protected function getMemoryUsageString()
    {
        switch (strtoupper(trim(ShopgateLogger::getInstance()->getMemoryAnalyserLoggingSizeUnit()))) {
            case 'GB':
                return (memory_get_usage() / (1024 * 1024 * 1024)) . " GB (real usage " . (memory_get_usage(
                            true
                        ) / (1024 * 1024 * 1024)) . " GB)";
            case 'MB':
                return (memory_get_usage() / (1024 * 1024)) . " MB (real usage " . (memory_get_usage(
                            true
                        ) / (1024 * 1024)) . " MB)";
            case 'KB':
                return (memory_get_usage() / 1024) . " KB (real usage " . (memory_get_usage(true) / 1024) . " KB)";
            default:
                return memory_get_usage() . " Bytes (real usage " . memory_get_usage(true) . " Bytes)";
        }
    }