class MemoryDataCollector extends DataCollector
implements LateDataCollectorInterface
{ public function __construct() { $this->
reset();
} public function collect(Request
$request, Response
$response, \Throwable
$exception = null
): void
{ $this->
updateMemoryUsage();
} public function reset(): void
{ $this->data =
[ 'memory' => 0,
'memory_limit' =>
$this->
convertToBytes(\
ini_get('memory_limit'
)),
];
} public function lateCollect(): void
{