Symfony2 API
Class

Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector

class MemoryDataCollector extends DataCollector

MemoryDataCollector.

Methods

serialize()

from DataCollector
unserialize($data)

from DataCollector
__construct()

collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

integer getMemory()

Gets the memory.

integer getMemoryLimit()

Gets the PHP memory limit.

updateMemoryUsage()

Updates the memory usage data.

string getName()

Returns the name of the collector.

Details

in DataCollector at line 25
public serialize()

in DataCollector at line 30
public unserialize($data)

Parameters

$data

at line 24
public __construct()

at line 35
public collect(Request $request, Response $response, Exception $exception = null)

Collects data for the given Request and Response.

Parameters

Request $request A Request instance
Response $response A Response instance
Exception $exception An Exception instance

at line 45
public integer getMemory()

Gets the memory.

Return Value

integer The memory

at line 55
public integer getMemoryLimit()

Gets the PHP memory limit.

Return Value

integer The memory limit

at line 63
public updateMemoryUsage()

Updates the memory usage data.

at line 71
public string getName()

Returns the name of the collector.

Return Value

string The collector name