MemoryDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
MemoryDataCollector.
Tags
Interfaces, Classes, Traits and Enums
- LateDataCollectorInterface
- LateDataCollectorInterface.
Table of Contents
- $data : array<string|int, mixed>|Data
- $cloner : ClonerInterface
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getMemory() : int
- Gets the memory.
- getMemoryLimit() : int
- Gets the PHP memory limit.
- getName() : mixed
- {@inheritdoc}
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- {@inheritdoc}
- serialize() : mixed
- unserialize() : mixed
- updateMemoryUsage() : mixed
- Updates the memory usage data.
- cloneVar() : Data
- Converts the variable into a serializable Data instance.
- getCasters() : array<string|int, callable>
- convertToBytes() : int|float
Properties
$data
protected
array<string|int, mixed>|Data
$data
= []
$cloner
private
ClonerInterface
$cloner
Methods
__construct()
public
__construct() : mixed
Return values
mixed —__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed> —__wakeup()
public
__wakeup() : mixed
Return values
mixed —collect()
{@inheritdoc}
public
collect(Request $request, Response $response) : mixed
Parameters
Return values
mixed —getMemory()
Gets the memory.
public
getMemory() : int
Return values
int —The memory
getMemoryLimit()
Gets the PHP memory limit.
public
getMemoryLimit() : int
Return values
int —The memory limit
getName()
{@inheritdoc}
public
getName() : mixed
Return values
mixed —lateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
Return values
mixed —reset()
{@inheritdoc}
public
reset() : mixed
Return values
mixed —serialize()
public
serialize() : mixed
Tags
Return values
mixed —unserialize()
public
unserialize(mixed $data) : mixed
Parameters
- $data : mixed
Tags
Return values
mixed —updateMemoryUsage()
Updates the memory usage data.
public
updateMemoryUsage() : mixed
Return values
mixed —cloneVar()
Converts the variable into a serializable Data instance.
protected
cloneVar(mixed $var) : Data
This array can be displayed in the template using the VarDumper component.
Parameters
- $var : mixed
Return values
Data —getCasters()
protected
getCasters() : array<string|int, callable>
Return values
array<string|int, callable> —The casters to add to the cloner
convertToBytes()
private
convertToBytes(string $memoryLimit) : int|float
Parameters
- $memoryLimit : string