parent = array(); $this->blocks = array( 'toolbar' => array($this, 'block_toolbar'), ); } public function getParent(array $context) { $parent = "WebProfilerBundle:Profiler:layout.html.twig"; if ($parent instanceof Twig_Template) { $name = $parent->getTemplateName(); $this->parent[$name] = $parent; $parent = $name; } elseif (!isset($this->parent[$parent])) { $this->parent[$parent] = $this->env->loadTemplate($parent); } return $this->parent[$parent]; } protected function doDisplay(array $context, array $blocks = array()) { $context = array_merge($this->env->getGlobals(), $context); $this->getParent($context)->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_toolbar($context, array $blocks = array()) { // line 4 echo " "; ob_start(); // line 5 echo " \"Memory "; $context['icon'] = new Twig_Markup(ob_get_clean()); // line 7 echo " "; ob_start(); // line 8 echo " "; echo twig_escape_filter($this->env, sprintf("%.0f", ($this->getAttribute($this->getContext($context, 'collector'), "memory", array(), "any", false) / 1024)), "html"); echo " KB "; $context['text'] = new Twig_Markup(ob_get_clean()); // line 10 echo " "; $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => false))); } public function getTemplateName() { return "WebProfilerBundle:Collector:memory.html.twig"; } public function isTraitable() { return false; } }