AbstractMemoryProcessor

abstract class \TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor

Extends
AbstractProcessor

Common memory processor methods.

Table of Contents

Properties

$formatSize  : bool
Whether the size is formatted, e.g. in megabytes
$realMemoryUsage  : bool
Allocated memory usage type to use If set, the real size of memory allocated from system is used.

Methods

__construct()  : mixed
Constructs this log processor
getFormatSize()  : bool
Returns whether size should be formatted
getRealMemoryUsage()  : bool
Returns the allocated memory usage type
setFormatSize()  : mixed
Sets whether size should be formatted
setRealMemoryUsage()  : mixed
Sets the allocated memory usage type

Properties

$realMemoryUsage

Allocated memory usage type to use If set, the real size of memory allocated from system is used.

protected bool $realMemoryUsage = true

Otherwise the memory used by emalloc() is used.

Tags

see
memory_get_usage()
see
memory_get_peak_usage()

Methods

getFormatSize()

Returns whether size should be formatted

public getFormatSize() : bool

Return values

bool

getRealMemoryUsage()

Returns the allocated memory usage type

public getRealMemoryUsage() : bool

Return values

bool

setFormatSize()

Sets whether size should be formatted

public setFormatSize(bool $formatSize) : mixed

Parameters

$formatSize : bool

setRealMemoryUsage()

Sets the allocated memory usage type

public setRealMemoryUsage(bool $realMemoryUsage) : mixed

Parameters

$realMemoryUsage : bool

Which allocated memory type to use

On this page