Documentation

Profile
in package
implements IteratorAggregate, Serializable

Tags
author

Fabien Potencier fabien@symfony.com

final

since Twig 2.4.0

Interfaces, Classes and Traits

IteratorAggregate
Serializable

Table of Contents

BLOCK  = 'block'
MACRO  = 'macro'
ROOT  = 'ROOT'
TEMPLATE  = 'template'
$ends  : mixed
$name  : mixed
$profiles  : mixed
$starts  : mixed
$template  : mixed
$type  : mixed
__construct()  : mixed
addProfile()  : mixed
enter()  : mixed
Starts the profiling.
getDuration()  : float
Returns the duration in microseconds.
getIterator()  : Traversable
getMemoryUsage()  : int
Returns the memory usage in bytes.
getName()  : mixed
getPeakMemoryUsage()  : int
Returns the peak memory usage in bytes.
getProfiles()  : mixed
getTemplate()  : mixed
getType()  : mixed
isBlock()  : mixed
isMacro()  : mixed
isRoot()  : mixed
isTemplate()  : mixed
leave()  : mixed
Stops the profiling.
reset()  : mixed
serialize()  : string
unserialize()  : void

Constants

TEMPLATE

public mixed TEMPLATE = 'template'

Properties

$profiles

private mixed $profiles = []

Methods

__construct()

public __construct([string $template = 'main' ][, string $type = self::ROOT ][, string $name = 'main' ]) : mixed
Parameters
$template : string = 'main'
$type : string = self::ROOT
$name : string = 'main'
Return values
mixed

addProfile()

public addProfile(self $profile) : mixed
Parameters
$profile : self
Return values
mixed

enter()

Starts the profiling.

public enter() : mixed
Return values
mixed

getDuration()

Returns the duration in microseconds.

public getDuration() : float
Return values
float

getIterator()

public getIterator() : Traversable
Return values
Traversable

getMemoryUsage()

Returns the memory usage in bytes.

public getMemoryUsage() : int
Return values
int

getName()

public getName() : mixed
Return values
mixed

getPeakMemoryUsage()

Returns the peak memory usage in bytes.

public getPeakMemoryUsage() : int
Return values
int

getProfiles()

public getProfiles() : mixed
Return values
mixed

getTemplate()

public getTemplate() : mixed
Return values
mixed

getType()

public getType() : mixed
Return values
mixed

isBlock()

public isBlock() : mixed
Return values
mixed

isMacro()

public isMacro() : mixed
Return values
mixed

isRoot()

public isRoot() : mixed
Return values
mixed

isTemplate()

public isTemplate() : mixed
Return values
mixed

leave()

Stops the profiling.

public leave() : mixed
Return values
mixed

reset()

public reset() : mixed
Return values
mixed

serialize()

public serialize() : string
Return values
string

unserialize()

public unserialize(mixed $data) : void
Parameters
$data : mixed
Return values
void

Search results