MemoryDataCollector
extends DataCollector
in package
implements
LateDataCollectorInterface
DataCollector.
Tags
Table of Contents
Interfaces
- LateDataCollectorInterface
- LateDataCollectorInterface.
Properties
Methods
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : mixed
- collect() : mixed
- {@inheritdoc}
- getMemory() : int
- getMemoryLimit() : int|float
- getName() : string
- {@inheritdoc}
- lateCollect() : mixed
- Collects data as late as possible.
- reset() : mixed
- {@inheritdoc}
- updateMemoryUsage() : mixed
- 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
mixed
$cloner
Methods
__construct()
public
__construct() : mixed
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : mixed
collect()
{@inheritdoc}
public
collect(Request $request, Response $response[, Throwable $exception = null ]) : mixed
Parameters
getMemory()
public
getMemory() : int
Return values
intgetMemoryLimit()
public
getMemoryLimit() : int|float
Return values
int|floatgetName()
{@inheritdoc}
public
getName() : string
Return values
stringlateCollect()
Collects data as late as possible.
public
lateCollect() : mixed
reset()
{@inheritdoc}
public
reset() : mixed
updateMemoryUsage()
public
updateMemoryUsage() : 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
DatagetCasters()
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