TYPO3 CMS  TYPO3_6-2
MemoryUsageProcessor.php
Go to the documentation of this file.
1 <?php
3 
23 
31  public function processLogRecord(\TYPO3\CMS\Core\Log\LogRecord $logRecord) {
32  $bytes = memory_get_usage($this->getRealMemoryUsage());
33  if ($this->formatSize) {
35  } else {
36  $size = $bytes;
37  }
38  $logRecord->addData(array(
39  'memoryUsage' => $size
40  ));
41  return $logRecord;
42  }
43 
44 }
processLogRecord(\TYPO3\CMS\Core\Log\LogRecord $logRecord)
static formatSize($sizeInBytes, $labels='')