TYPO3 CMS  TYPO3_6-2
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=array())
 

Additional Inherited Members

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

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Memory usage processor methods.

Author
Ingo Renner ingo@.nosp@m.typo.nosp@m.3.org
Steffen Müller typo3.nosp@m.@t3n.nosp@m.ode.c.nosp@m.om

Definition at line 22 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 31 of file MemoryUsageProcessor.php.

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