4 * This file is part of Twig.
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
13 * @author Fabien Potencier <fabien@symfony.com>
17 class Twig_Profiler_Dumper_Text extends Twig_Profiler_Dumper_Base
19 protected function formatTemplate(Twig_Profiler_Profile $profile, $prefix)
21 return sprintf('%s└ %s', $prefix, $profile->getTemplate());
24 protected function formatNonTemplate(Twig_Profiler_Profile $profile, $prefix)
26 return sprintf('%s└ %s::%s(%s)', $prefix, $profile->getTemplate(), $profile->getType(), $profile->getName());
29 protected function formatTime(Twig_Profiler_Profile $profile, $percent)
31 return sprintf('%.2fms/%.0f%%', $profile->getDuration() * 1000, $percent);
35 class_alias('Twig_Profiler_Dumper_Text', 'Twig\Profiler\Dumper\TextDumper', false);