ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Twig_Profiler_Dumper_Text Class Reference
+ Inheritance diagram for Twig_Profiler_Dumper_Text:
+ Collaboration diagram for Twig_Profiler_Dumper_Text:

Protected Member Functions

 formatTemplate (Twig_Profiler_Profile $profile, $prefix)
 
 formatNonTemplate (Twig_Profiler_Profile $profile, $prefix)
 
 formatTime (Twig_Profiler_Profile $profile, $percent)
 
 formatTemplate (Twig_Profiler_Profile $profile, $prefix)
 
 formatNonTemplate (Twig_Profiler_Profile $profile, $prefix)
 
 formatTime (Twig_Profiler_Profile $profile, $percent)
 

Additional Inherited Members

- Public Member Functions inherited from Twig_Profiler_Dumper_Base
 dump (Twig_Profiler_Profile $profile)
 

Detailed Description

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

@final

Definition at line 17 of file Text.php.

Member Function Documentation

◆ formatNonTemplate()

Twig_Profiler_Dumper_Text::formatNonTemplate ( Twig_Profiler_Profile  $profile,
  $prefix 
)
protected

Reimplemented from Twig_Profiler_Dumper_Base.

Definition at line 24 of file Text.php.

25 {
26 return sprintf('%s└ %s::%s(%s)', $prefix, $profile->getTemplate(), $profile->getType(), $profile->getName());
27 }
sprintf('%.4f', $callTime)

References Twig_Profiler_Profile\getName(), Twig_Profiler_Profile\getTemplate(), Twig_Profiler_Profile\getType(), and sprintf.

+ Here is the call graph for this function:

◆ formatTemplate()

Twig_Profiler_Dumper_Text::formatTemplate ( Twig_Profiler_Profile  $profile,
  $prefix 
)
protected

Reimplemented from Twig_Profiler_Dumper_Base.

Definition at line 19 of file Text.php.

20 {
21 return sprintf('%s└ %s', $prefix, $profile->getTemplate());
22 }

References Twig_Profiler_Profile\getTemplate(), and sprintf.

+ Here is the call graph for this function:

◆ formatTime()

Twig_Profiler_Dumper_Text::formatTime ( Twig_Profiler_Profile  $profile,
  $percent 
)
protected

Reimplemented from Twig_Profiler_Dumper_Base.

Definition at line 29 of file Text.php.

30 {
31 return sprintf('%.2fms/%.0f%%', $profile->getDuration() * 1000, $percent);
32 }
getDuration()
Returns the duration in microseconds.
Definition: Profile.php:89

References Twig_Profiler_Profile\getDuration(), and sprintf.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: