Sets the unit in which the memory usage logger outputs its values in

@param string $sizeUnit ('MB', 'BYTES', 'GB', 'KB', ...)
190078
public function setMemoryAnalyserLoggingSizeUnit($sizeUnit)
    {
        switch (strtoupper(trim($sizeUnit))) {
            case 'GB':
            case 'GIGABYTE':
            case 'GIGABYTES':
                $this->memoryAnalyserLoggingSizeUnit = 'GB';
                break;
            case 'MB':
            case 'MEGABYTE':
            case 'MEGABYTES':
                $this->memoryAnalyserLoggingSizeUnit = 'MB';
                break;
            case 'KB':
            case 'KILOBYTE':
            case 'KILOBYTES':
                $this->memoryAnalyserLoggingSizeUnit = 'KB';
                break;
            default:
                $this->memoryAnalyserLoggingSizeUnit = 'BYTES';
                break;
        }
    }
579583
public static function convertUnitFileSize($size)
    {
        $units = [" B", " KB", " MB", " GB"];
        $calculatedSize = $size;
        $unit = Arrays::first($units);
        if ($size) {
            $calculatedSize = round($size / pow(1024, ($i = (int)floor(log($size, 1024)))), 2);
            $unit = $units[$i];
        }
        return $calculatedSize . $unit;
    }
254837
private function setSize($size): void
    {
        if (false === is_int($size)) {
            throw new \InvalidArgumentException('Upload file size must be an integer');
        }

        $this->size = $size;
    }
1158785
public void setStorageSize(String name, double value, StorageUnit unit) {
		set(name, value + unit.getShortName());
	}
323344
public void setTimeUnit(com.google.api.ads.admanager.axis.v201808.TimeUnit timeUnit) {
        this.timeUnit = timeUnit;
    }
201573
public void setUnit(String v) {
    if (Measure_Type.featOkTst && ((Measure_Type)jcasType).casFeat_unit == null)
      jcasType.jcas.throwFeatMissing("unit", "ch.epfl.bbp.uima.types.Measure");
    jcasType.ll_cas.ll_setStringValue(addr, ((Measure_Type)jcasType).casFeatCode_unit, v);}
443473
public void setUnitPerMillimeter(int unitPerMillimeter)
	{
		if (1 > unitPerMillimeter)
		{
			String _message = "The specified unitPerMillimetre ({0}) is incorrect, it must be greater or equal than 1.";
			Object[] _parameters =
			{
				new Integer(unitPerMillimeter)
			};
			throw new IllegalArgumentException(MessageFormat.format(_message, _parameters));
		}
		myUnitPerMillimeter = unitPerMillimeter;
	}
1053874
public function setMemoryLimit($memoryLimit)
    {
        if ($this->status != self::STATUS_NEW) {
            throw new \RuntimeException('Cannot set worker memory limit after worker has started working');
        }

        $this->memoryLimit = $memoryLimit;
    }
790166
public function setSize($size)
    {
        if (!is_int($size)) {
            throw new \InvalidArgumentException('The attribute size on the class Attribute has to be integer (' . gettype($size) . ('object' === gettype($size) ? ' ' . get_class($size) : '') . ' given).');
        }

        $this->size = $size;

        return $this;
    }
679838
@Nonnull
  public FineUploaderBasic setSizeLimit (@Nonnegative final int nSizeLimit)
  {
    ValueEnforcer.isGE0 (nSizeLimit, "SizeLimit");
    m_nValidationSizeLimit = nSizeLimit;
    return this;
  }
104704
protected function addConsumedWriteUnits($table, $units)
    {
        if (null !== $this->logger) {
            $this->log($units.' consumed write units on table '.$table);
        }

        if (isset($this->writeUnit[$table])) {
            $this->writeUnit[$table] += $units;
        } else {
            $this->writeUnit[$table] = $units;
        }
    }
15512
protected function setMaxSize($maxSize)
    {
        $this->maxSize = $this->toBytes($maxSize);
        $this->maxSizeString = $this->fromBytes($this->maxSize);
        return $this;
    }
257511
public function getSize($unit = 'b', $precision = 2)
    {
        $unit = strtolower($unit);

        switch ($unit) {
            case 'g':
            case 'gb':
                return round(((int)$this->size) / 1024 / 1024 / 1024, $precision);
            case 'm':
            case 'mb':
                return round(((int)$this->size) / 1024 / 1024, $precision);
            case 'k':
            case 'kb':
                return round(((int)$this->size) / 1024, $precision);
        }
        
        return $this->size;
    }
427068
public function setMeasureUnit(\Flowcode\ShopBundle\Entity\MeasureUnit $measureUnit = null)
    {
        $this->measureUnit = $measureUnit;

        return $this;
    }
1095636
public function setCacheSize($size)
    {
        $this->cacheSize = $size;
        $this->logger->debug('LRUcache: set size: ' . $size );
        return true;
    }
804326
private function buildOrder(array &$classes, string $sizeSuffix): void
    {
        if ($this->order) {
            $classes[] = 'order' . $sizeSuffix . '-' . $this->order;
        }
    }
96664
public void setAttributeSize(ScoreAttribute sa, float size, SizeUnit unit) {
		if (!(sa.getDefaultValue() instanceof ScoreAttribute.Size))
			throw new RuntimeException(sa.toString()
					+ " is not a size attribute");
		m_attributes.put(sa.getName(), new ScoreAttribute.Size(size, unit));
		notifyListeners();
	}