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)
 
- Protected Member Functions inherited from Twig_Profiler_Dumper_Base
 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

Definition at line 17 of file Text.php.

Member Function Documentation

◆ formatNonTemplate()

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

Definition at line 24 of file Text.php.

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

25  {
26  return sprintf('%s└ %s::%s(%s)', $prefix, $profile->getTemplate(), $profile->getType(), $profile->getName());
27  }
+ Here is the call graph for this function:

◆ formatTemplate()

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

Definition at line 19 of file Text.php.

References Twig_Profiler_Profile\getTemplate().

20  {
21  return sprintf('%s└ %s', $prefix, $profile->getTemplate());
22  }
+ Here is the call graph for this function:

◆ formatTime()

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

Definition at line 29 of file Text.php.

References Twig_Profiler_Profile\getDuration().

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

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