1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-20 16:16:37 +02:00
This commit is contained in:
Rob Jensen
2011-07-19 15:04:23 +01:00
parent c0cfb39d75
commit 6a2e2142d6
4 changed files with 11 additions and 38 deletions

View File

@@ -15,7 +15,7 @@ use Monolog\Processor\MemoryProcessor;
/**
* Injects memory_get_peak_usage in all records
*
*
* @see Monolog\Processor\MemoryProcessor__construct() for options
* @author Rob Jensen
*/
@@ -28,8 +28,8 @@ class MemoryPeakUsageProcessor extends MemoryProcessor
*/
public function __invoke(array $record)
{
$bytes = memory_get_peak_usage( $this->realUsage );
$formatted = MemoryProcessor::formatBytes( $bytes );
$bytes = memory_get_peak_usage($this->realUsage);
$formatted = MemoryProcessor::formatBytes($bytes);
$record['extra'] = array_merge(
$record['extra'],