‪TYPO3CMS  11.5
TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor Class Reference
Inheritance diagram for TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor:
TYPO3\CMS\Core\Log\Processor\AbstractProcessor TYPO3\CMS\Core\Log\Processor\ProcessorInterface TYPO3\CMS\Core\Log\Processor\MemoryPeakUsageProcessor TYPO3\CMS\Core\Log\Processor\MemoryUsageProcessor

Public Member Functions

 setRealMemoryUsage ($realMemoryUsage)
 
bool getRealMemoryUsage ()
 
 setFormatSize ($formatSize)
 
bool getFormatSize ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Log\Processor\AbstractProcessor
 __construct (array $options=[])
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Log\Processor\ProcessorInterface
TYPO3 CMS Core Log LogRecord processLogRecord (LogRecord $logRecord)
 

Protected Attributes

bool $realMemoryUsage = true
 
bool $formatSize = true
 

Detailed Description

Common memory processor methods.

Definition at line 21 of file AbstractMemoryProcessor.php.

Member Function Documentation

◆ getFormatSize()

bool TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor::getFormatSize ( )

Returns whether size should be formatted

Returns
‪bool

Definition at line 75 of file AbstractMemoryProcessor.php.

References TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor\$formatSize.

◆ getRealMemoryUsage()

bool TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor::getRealMemoryUsage ( )

◆ setFormatSize()

TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor::setFormatSize (   $formatSize)

Sets whether size should be formatted

Parameters
bool$formatSize

Definition at line 65 of file AbstractMemoryProcessor.php.

References TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor\$formatSize.

◆ setRealMemoryUsage()

TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor::setRealMemoryUsage (   $realMemoryUsage)

Sets the allocated memory usage type

Parameters
bool$realMemoryUsage‪Which allocated memory type to use

Definition at line 45 of file AbstractMemoryProcessor.php.

References TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor\$realMemoryUsage.

Member Data Documentation

◆ $formatSize

bool TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor::$formatSize = true
protected

Whether the size is formatted, e.g. in megabytes

See also
‪\TYPO3\CMS\Core\Utility\GeneralUtility::formatSize()

Definition at line 38 of file AbstractMemoryProcessor.php.

Referenced by TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor\getFormatSize(), and TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor\setFormatSize().

◆ $realMemoryUsage

bool TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor::$realMemoryUsage = true
protected

Allocated memory usage type to use If set, the real size of memory allocated from system is used. Otherwise the memory used by emalloc() is used.

See also
‪memory_get_usage()
‪memory_get_peak_usage()

Definition at line 31 of file AbstractMemoryProcessor.php.

Referenced by TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor\getRealMemoryUsage(), and TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor\setRealMemoryUsage().