src/Tomahawk/Bundle/WebProfilerBundle/Profiler.php
public function render()
    {
        if (!$this->enabled()) {
            return '';
        }

        $memory      = $this->getFileSize(memory_get_usage(true));
        $memory_peak = $this->getFileSize(memory_get_peak_usage(true));
        $time        = number_format((microtime(true) - $this->startTime) * 1000, 2);
        $timers      = $this->timers;
        foreach ($timers as &$timer) {
            $timer['running_time'] = number_format((microtime(true) - $timer['start'] ) * 1000, 2);
        }

        return $this->engine->render('WebProfilerBundle:Profiler:index', array(
            'assetsPath'  => $this->assetsPath,
            'queries'     => $this->queries,
            'logs'        => $this->logs,
            'memory'      => $memory,
            'memory_peak' => $memory_peak,
            'time'        => $time,
            'timers'      => $timers,
            'version'     => Kernel::VERSION,
            'request'     => $this->getRequest(),
        ));
    }
public function render()
    {
        if (!$this->enabled()) {
            return '';
        }

        $memory      = $this->getFileSize(memory_get_usage(true));
        $memory_peak = $this->getFileSize(memory_get_peak_usage(true));
        $time        = number_format((microtime(true) - $this->startTime) * 1000, 2);
        $timers      = $this->timers;
        foreach ($timers as &$timer) {
            $timer['running_time'] = number_format((microtime(true) - $timer['start'] ) * 1000, 2);
        }

        return $this->engine->render('WebProfilerBundle:Profiler:index', array(
            'assetsPath'  => $this->assetsPath,
            'queries'     => $this->queries,
            'logs'        => $this->logs,
            'memory'      => $memory,
            'memory_peak' => $memory_peak,
            'time'        => $time,
            'timers'      => $timers,
            'version'     => Kernel::VERSION,
            'request'     => $this->getRequest(),
        ));
    }
Render Template

@return string