- Author
- Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
Definition at line 15 of file Base.php.
◆ dump()
◆ dumpProfile()
Twig_Profiler_Dumper_Base::dumpProfile |
( |
Twig_Profiler_Profile |
$profile, |
|
|
|
$prefix = '' , |
|
|
|
$sibling = false |
|
) |
| |
|
private |
Definition at line 30 of file Base.php.
References $i, formatNonTemplate(), formatTemplate(), formatTime(), Twig_Profiler_Profile\getDuration(), Twig_Profiler_Profile\getName(), Twig_Profiler_Profile\getProfiles(), Twig_Profiler_Profile\isRoot(), and Twig_Profiler_Profile\isTemplate().
Referenced by dump().
41 $prefix .= $sibling ?
'│ ' :
' ';
44 $percent = $this->root ? $profile->
getDuration() / $this->root * 100 : 0;
49 $str = sprintf(
"%s %s\n", $start, $this->
formatTime($profile, $percent));
53 foreach ($profile as
$i => $p) {
formatTemplate(Twig_Profiler_Profile $profile, $prefix)
dumpProfile(Twig_Profiler_Profile $profile, $prefix='', $sibling=false)
formatNonTemplate(Twig_Profiler_Profile $profile, $prefix)
getDuration()
Returns the duration in microseconds.
formatTime(Twig_Profiler_Profile $profile, $percent)
◆ formatNonTemplate()
◆ formatTemplate()
◆ formatTime()
◆ $root
Twig_Profiler_Dumper_Base::$root |
|
private |
The documentation for this class was generated from the following file:
- libs/composer/vendor/twig/twig/lib/Twig/Profiler/Dumper/Base.php