class Point implements PointInterface (View source)

Class ProfilerItem

Methods

__construct(string $name, float $timing = 0.0, integer $memory, mixed $data = array())

Constructor.

static Point
current(string $name, mixed $data = array())

Create a point of current information.

string
getName()

Get the name of this profile point.

float
getTime()

Get the elapsed time in seconds since the first point in the profiler it belongs to was marked.

integer
getMemory(bool $megaBytes = false)

Get the allocated amount of memory in bytes since the first point in the profiler it belongs to was marked.

getData()

Method to get property Data

setData(array|CollectorInterface $data)

Method to set property data

Details

at line line 56
__construct(string $name, float $timing = 0.0, integer $memory, mixed $data = array())

Constructor.

Parameters

string $name The point name.
float $timing The time in seconds.
integer $memory The allocated amount of memory in bytes
mixed $data The collector data.

at line line 73
static Point current(string $name, mixed $data = array())

Create a point of current information.

Parameters

string $name The point name.
mixed $data The collector data.

Return Value

Point

at line line 83
string getName()

Get the name of this profile point.

Return Value

string The name of this profile point.

at line line 94
float getTime()

Get the elapsed time in seconds since the first point in the profiler it belongs to was marked.

Return Value

float The time in seconds.

at line line 107
integer getMemory(bool $megaBytes = false)

Get the allocated amount of memory in bytes since the first point in the profiler it belongs to was marked.

Parameters

bool $megaBytes

Return Value

integer The amount of allocated memory in B.

at line line 117
CollectorInterface getData()

Method to get property Data

Return Value

CollectorInterface

at line line 129
Point setData(array|CollectorInterface $data)

Method to set property data

Parameters

array|CollectorInterface $data

Return Value

Point Return self to support chaining.