- 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.
31 {
35 } else {
38 } else {
40 }
41 $prefix .= $sibling ? '│ ' : ' ';
42 }
43
44 $percent = $this->root ? $profile->
getDuration() / $this->root * 100 : 0;
45
48 } else {
50 }
51
53 foreach ($profile as
$i => $p) {
55 }
56
57 return $str;
58 }
formatTime(Twig_Profiler_Profile $profile, $percent)
formatTemplate(Twig_Profiler_Profile $profile, $prefix)
formatNonTemplate(Twig_Profiler_Profile $profile, $prefix)
getDuration()
Returns the duration in microseconds.
References $i, $start, dumpProfile(), 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(), and dumpProfile().
◆ 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