Class Twig_Profiler_Profile

InheritanceTwig_Profiler_Profile
ImplementsIteratorAggregate, Serializable

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
BLOCK 'block' Twig_Profiler_Profile
MACRO 'macro' Twig_Profiler_Profile
ROOT 'ROOT' Twig_Profiler_Profile
TEMPLATE 'template' Twig_Profiler_Profile

Method Details

__construct() public method

public void __construct ( $template 'main', $type self::ROOT, $name 'main' )
$template
$type
$name
addProfile() public method

public void addProfile ( Twig_Profiler_Profile $profile )
$profile
enter() public method

Starts the profiling.

public void enter ( )
getDuration() public method

Returns the duration in microseconds.

public int getDuration ( )
getIterator() public method

public void getIterator ( )
getMemoryUsage() public method

Returns the memory usage in bytes.

public int getMemoryUsage ( )
getName() public method

public void getName ( )
getPeakMemoryUsage() public method

Returns the peak memory usage in bytes.

public int getPeakMemoryUsage ( )
getProfiles() public method

public void getProfiles ( )
getTemplate() public method

public void getTemplate ( )
getType() public method

public void getType ( )
isBlock() public method

public void isBlock ( )
isMacro() public method

public void isMacro ( )
isRoot() public method

public void isRoot ( )
isTemplate() public method

public void isTemplate ( )
leave() public method

Stops the profiling.

public void leave ( )
serialize() public method

public void serialize ( )
unserialize() public method

public void unserialize ( $data )
$data