HumHub Documentation (unofficial)

Profile
in package
implements IteratorAggregate, Serializable

FinalYes
Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Interfaces

IteratorAggregate
Serializable

Constants

BLOCK  = 'block'
MACRO  = 'macro'
ROOT  = 'ROOT'
TEMPLATE  = 'template'

Properties

$ends  : mixed
$name  : mixed
$profiles  : mixed
$starts  : mixed
$template  : mixed
$type  : mixed

Methods

__construct()  : mixed
addProfile()  : void
enter()  : void
Starts the profiling.
getDuration()  : float
Returns the duration in microseconds.
getIterator()  : Traversable
getMemoryUsage()  : int
Returns the memory usage in bytes.
getName()  : string
getPeakMemoryUsage()  : int
Returns the peak memory usage in bytes.
getProfiles()  : array<string|int, Profile>
getTemplate()  : string
getType()  : string
isBlock()  : bool
isMacro()  : bool
isRoot()  : bool
isTemplate()  : bool
leave()  : void
Stops the profiling.
reset()  : void
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'

addProfile()

public addProfile(self $profile) : void
Parameters
$profile : self

enter()

Starts the profiling.

public enter() : void

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() : string
Return values
string

getPeakMemoryUsage()

Returns the peak memory usage in bytes.

public getPeakMemoryUsage() : int
Return values
int

getTemplate()

public getTemplate() : string
Return values
string

getType()

public getType() : string
Return values
string

isBlock()

public isBlock() : bool
Return values
bool

isMacro()

public isMacro() : bool
Return values
bool

isRoot()

public isRoot() : bool
Return values
bool

isTemplate()

public isTemplate() : bool
Return values
bool

leave()

Stops the profiling.

public leave() : void

serialize()

public serialize() : string
Return values
string

unserialize()

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

        
On this page

Search results