49 $bytes = (int) $bytes;
51 if (!$this->useFormatting) {
55 if ($bytes > 1024 * 1024) {
56 return round($bytes / 1024 / 1024, 2).
' MB';
57 } elseif ($bytes > 1024) {
58 return round($bytes / 1024, 2).
' KB';
formatBytes($bytes)
Formats bytes into a human readable string if $this->useFormatting is true, otherwise return $bytes a...
__construct($realUsage=true, $useFormatting=true)
Some methods that are common for all memory processors.
An optional interface to allow labelling Monolog processors.