You are here

private function Twig_Profiler_Dumper_Blackfire::dumpChildren in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Profiler/Dumper/Blackfire.php \Twig_Profiler_Dumper_Blackfire::dumpChildren()
1 call to Twig_Profiler_Dumper_Blackfire::dumpChildren()
Twig_Profiler_Dumper_Blackfire::dump in vendor/twig/twig/lib/Twig/Profiler/Dumper/Blackfire.php

File

vendor/twig/twig/lib/Twig/Profiler/Dumper/Blackfire.php, line 39

Class

Twig_Profiler_Dumper_Blackfire
@author Fabien Potencier <fabien@symfony.com>

Code

private function dumpChildren($parent, Twig_Profiler_Profile $profile, &$data) {
  foreach ($profile as $p) {
    if ($p
      ->isTemplate()) {
      $name = $p
        ->getTemplate();
    }
    else {
      $name = sprintf('%s::%s(%s)', $p
        ->getTemplate(), $p
        ->getType(), $p
        ->getName());
    }
    $this
      ->dumpProfile(sprintf('%s==>%s', $parent, $name), $p, $data);
    $this
      ->dumpChildren($name, $p, $data);
  }
}