ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
MemoryUsageProcessor.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of the Monolog package.
5
*
6
* (c) Jordi Boggiano <j.boggiano@seld.be>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace
Monolog\Processor
;
13
20
class
MemoryUsageProcessor
extends
MemoryProcessor
21
{
26
public
function
__invoke
(
array
$record)
27
{
28
$bytes = memory_get_usage($this->realUsage);
29
$formatted = $this->
formatBytes
($bytes);
30
31
$record[
'extra'
][
'memory_usage'
] = $formatted;
32
33
return
$record;
34
}
35
}
Monolog\Processor\MemoryProcessor\formatBytes
formatBytes($bytes)
Formats bytes into a human readable string if $this->useFormatting is true, otherwise return $bytes a...
Definition:
MemoryProcessor.php:47
Monolog\Processor
Definition:
GitProcessor.php:12
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
Monolog\Processor\MemoryUsageProcessor
Injects memory_get_usage in all records.
Definition:
MemoryUsageProcessor.php:20
Monolog\Processor\MemoryProcessor
Some methods that are common for all memory processors.
Definition:
MemoryProcessor.php:19
Monolog\Processor\MemoryUsageProcessor\__invoke
__invoke(array $record)
Definition:
MemoryUsageProcessor.php:26
libs
composer
vendor
monolog
monolog
src
Monolog
Processor
MemoryUsageProcessor.php
Generated on Sat Jan 18 2025 19:01:05 for ILIAS by
1.8.13 (using
Doxyfile
)