Some methods that are common for all memory processors

Abstract
ChildrenMonolog\Processor\MemoryPeakUsageProcessor
Monolog\Processor\MemoryUsageProcessor
ImplementsMonolog\Processor\ProcessorInterface
Methods
public __construct(bool $realUsage = true, bool $useFormatting = true)
 
    public abstract Monolog\Processor\ProcessorInterface::__invoke(array $record)
     
    • return array The processed record
    Properties
    protected $realUsage
     
    • var bool If true, get the real size of memory allocated from system. Else, only the memory used by emalloc() is reported.
    protected $useFormatting
     
    • var bool If true, then format memory size to human readable string (MB, KB, B depending on size)
    Methods
    protected formatBytes(int $bytes)
     

    Formats bytes into a human readable string if $this->useFormatting is true, otherwise return $bytes as is

    • return string|int Formatted string if $this->useFormatting is true, otherwise return $bytes as int
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only