ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($template='main', $type=self::ROOT, $name='main') | |
getTemplate () | |
getType () | |
getName () | |
isRoot () | |
isTemplate () | |
isBlock () | |
isMacro () | |
getProfiles () | |
addProfile (Twig_Profiler_Profile $profile) | |
getDuration () | |
Returns the duration in microseconds. More... | |
getMemoryUsage () | |
Returns the memory usage in bytes. More... | |
getPeakMemoryUsage () | |
Returns the peak memory usage in bytes. More... | |
enter () | |
Starts the profiling. More... | |
leave () | |
Stops the profiling. More... | |
reset () | |
getIterator () | |
serialize () | |
unserialize ($data) | |
Data Fields | |
const | ROOT = 'ROOT' |
const | BLOCK = 'block' |
const | TEMPLATE = 'template' |
const | MACRO = 'macro' |
Private Attributes | |
$template | |
$name | |
$type | |
$starts = array() | |
$ends = array() | |
$profiles = array() | |
Definition at line 17 of file Profile.php.
Twig_Profiler_Profile::__construct | ( | $template = 'main' , |
|
$type = self::ROOT , |
|||
$name = 'main' |
|||
) |
Twig_Profiler_Profile::addProfile | ( | Twig_Profiler_Profile | $profile | ) |
Definition at line 79 of file Profile.php.
Twig_Profiler_Profile::enter | ( | ) |
Starts the profiling.
Definition at line 127 of file Profile.php.
Referenced by __construct(), and reset().
Twig_Profiler_Profile::getDuration | ( | ) |
Returns the duration in microseconds.
Definition at line 89 of file Profile.php.
References isRoot().
Referenced by Twig_Profiler_Dumper_Base\dumpProfile(), Twig_Profiler_Dumper_Blackfire\dumpProfile(), Twig_Profiler_Dumper_Text\formatTime(), and Twig_Profiler_Dumper_Html\formatTime().
Twig_Profiler_Profile::getIterator | ( | ) |
Definition at line 154 of file Profile.php.
Twig_Profiler_Profile::getMemoryUsage | ( | ) |
Returns the memory usage in bytes.
Definition at line 109 of file Profile.php.
Referenced by Twig_Profiler_Dumper_Blackfire\dumpProfile().
Twig_Profiler_Profile::getName | ( | ) |
Definition at line 49 of file Profile.php.
References $name.
Referenced by Twig_Profiler_Dumper_Base\dumpProfile(), Twig_Profiler_Dumper_Text\formatNonTemplate(), and Twig_Profiler_Dumper_Html\formatNonTemplate().
Twig_Profiler_Profile::getPeakMemoryUsage | ( | ) |
Returns the peak memory usage in bytes.
Definition at line 119 of file Profile.php.
Referenced by Twig_Profiler_Dumper_Blackfire\dumpProfile().
Twig_Profiler_Profile::getProfiles | ( | ) |
Definition at line 74 of file Profile.php.
References $profiles.
Referenced by Twig_Profiler_Dumper_Base\dumpProfile().
Twig_Profiler_Profile::getTemplate | ( | ) |
Definition at line 39 of file Profile.php.
References $template.
Referenced by Twig_Profiler_Dumper_Text\formatNonTemplate(), Twig_Profiler_Dumper_Html\formatNonTemplate(), Twig_Profiler_Dumper_Text\formatTemplate(), and Twig_Profiler_Dumper_Html\formatTemplate().
Twig_Profiler_Profile::getType | ( | ) |
Definition at line 44 of file Profile.php.
References $type.
Referenced by Twig_Profiler_Dumper_Text\formatNonTemplate(), and Twig_Profiler_Dumper_Html\formatNonTemplate().
Twig_Profiler_Profile::isBlock | ( | ) |
Twig_Profiler_Profile::isMacro | ( | ) |
Twig_Profiler_Profile::isRoot | ( | ) |
Definition at line 54 of file Profile.php.
References $type.
Referenced by Twig_Profiler_Dumper_Base\dumpProfile(), and getDuration().
Twig_Profiler_Profile::isTemplate | ( | ) |
Definition at line 59 of file Profile.php.
References $type.
Referenced by Twig_Profiler_Dumper_Base\dumpProfile().
Twig_Profiler_Profile::leave | ( | ) |
Stops the profiling.
Definition at line 139 of file Profile.php.
Referenced by Twig_Extension_Profiler\leave().
Twig_Profiler_Profile::reset | ( | ) |
Definition at line 148 of file Profile.php.
References enter().
Twig_Profiler_Profile::serialize | ( | ) |
Definition at line 159 of file Profile.php.
Twig_Profiler_Profile::unserialize | ( | $data | ) |
Definition at line 164 of file Profile.php.
References $data.
|
private |
Definition at line 28 of file Profile.php.
|
private |
Definition at line 25 of file Profile.php.
Referenced by __construct(), and getName().
|
private |
Definition at line 29 of file Profile.php.
Referenced by getProfiles().
|
private |
Definition at line 27 of file Profile.php.
|
private |
Definition at line 24 of file Profile.php.
Referenced by __construct(), and getTemplate().
|
private |
Definition at line 26 of file Profile.php.
Referenced by __construct(), getType(), isBlock(), isMacro(), isRoot(), and isTemplate().
const Twig_Profiler_Profile::BLOCK = 'block' |
Definition at line 20 of file Profile.php.
Referenced by Twig_Profiler_NodeVisitor_Profiler\doLeaveNode(), and Twig_Tests_Profiler_ProfileTest\testIsBlock().
const Twig_Profiler_Profile::MACRO = 'macro' |
Definition at line 22 of file Profile.php.
Referenced by Twig_Profiler_NodeVisitor_Profiler\doLeaveNode(), and Twig_Tests_Profiler_ProfileTest\testIsMacro().
const Twig_Profiler_Profile::ROOT = 'ROOT' |
Definition at line 19 of file Profile.php.
Referenced by Twig_Tests_Profiler_ProfileTest\testIsBlock(), Twig_Tests_Profiler_ProfileTest\testIsMacro(), Twig_Tests_Profiler_ProfileTest\testIsRoot(), and Twig_Tests_Profiler_ProfileTest\testIsTemplate().
const Twig_Profiler_Profile::TEMPLATE = 'template' |
Definition at line 21 of file Profile.php.
Referenced by Twig_Profiler_NodeVisitor_Profiler\doLeaveNode(), Twig_Tests_Profiler_ProfileTest\testIsRoot(), and Twig_Tests_Profiler_ProfileTest\testIsTemplate().