TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Log\Processor\MemoryUsageProcessor Class Reference
Inheritance diagram for TYPO3\CMS\Core\Log\Processor\MemoryUsageProcessor:
TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor TYPO3\CMS\Core\Log\Processor\AbstractProcessor TYPO3\CMS\Core\Log\Processor\ProcessorInterface

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor
 $realMemoryUsage = true
 
 $formatSize = true
 

Detailed Description

Memory usage processor methods.

Definition at line 20 of file MemoryUsageProcessor.php.

Member Function Documentation

◆ processLogRecord()

TYPO3\CMS\Core\Log\Processor\MemoryUsageProcessor::processLogRecord ( \TYPO3\CMS\Core\Log\LogRecord  $logRecord)

Processes a log record and adds memory usage information.

Parameters
\TYPO3\CMS\Core\Log\LogRecord$logRecordThe log record to process
Returns
The processed log record with additional data
See also
memory_get_usage()

Implements TYPO3\CMS\Core\Log\Processor\ProcessorInterface.

Definition at line 29 of file MemoryUsageProcessor.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\formatSize(), and TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor\getRealMemoryUsage().