Constants

ROOT

ROOT = 'ROOT'

BLOCK

BLOCK = 'block'

TEMPLATE

TEMPLATE = 'template'

MACRO

MACRO = 'macro'

Properties

$template

$template : 

Type

$name

$name : 

Type

$type

$type : 

Type

$starts

$starts : 

Type

$ends

$ends : 

Type

$profiles

$profiles : 

Type

Methods

__construct()

__construct(  $template = 'main',   $type = self::ROOT,   $name = 'main') 

Parameters

$template
$type
$name

getTemplate()

getTemplate() 

getType()

getType() 

getName()

getName() 

isRoot()

isRoot() 

isTemplate()

isTemplate() 

isBlock()

isBlock() 

isMacro()

isMacro() 

getProfiles()

getProfiles() 

addProfile()

addProfile(self  $profile) 

Parameters

self $profile

getDuration()

getDuration() : integer

Returns the duration in microseconds.

Returns

integer

getMemoryUsage()

getMemoryUsage() : integer

Returns the memory usage in bytes.

Returns

integer

getPeakMemoryUsage()

getPeakMemoryUsage() : integer

Returns the peak memory usage in bytes.

Returns

integer

enter()

enter() 

Starts the profiling.

leave()

leave() 

Stops the profiling.

reset()

reset() 

getIterator()

getIterator() 

serialize()

serialize() 

unserialize()

unserialize(  $data) 

Parameters

$data