src/Viserio/Bridge/Twig/DataCollector/TwigDataCollector.php
public function getPanel(): string
    {
        $data     = [];
        $twigHtml = $this->createMetrics(
            [
                'Render time'    => $this->formatDuration($this->getTime()),
                'Template calls' => $this->getTemplateCount(),
                'Block calls'    => $this->getBlockCount(),
                'Macro calls'    => $this->getMacroCount(),
            ],
            'Twig Metrics'
        );

        $templates = [];

        foreach ($this->getTemplates() as $template => $count) {
            $templates[$template] = $count;
        }

        $twigHtml .= $this->createTable(
            $templates,
            [
                'name'      => 'Rendered Templates',
                'headers'   => ['Template Name', 'Render Count'],
                'vardumper' => false,
            ]
        );

        $twigHtml .= '<div class="twig-graph"><h3>Rendering Call Graph</h3>';
        $twigHtml .= $this->getHtmlCallGraph();
        $twigHtml .= '</div>';
        $extensions = $this->twigEnvironment->getExtensions();
        $data[]     = ['name' => 'Twig <span class="counter">' . $this->getTemplateCount() . '</span>', 'content' => $twigHtml];
        $data[]     = ['name' => 'Twig Extensions <span class="counter">' . \count($extensions) . '</span>', 'content' => $this->createTable(
            \array_keys($extensions),
            ['headers' => ['Extension'], 'vardumper' => false]
        )];

        return $this->createTabs($data);
    }
public function getPanel(): string
    {
        $data     = [];
        $twigHtml = $this->createMetrics(
            [
                'Render time'    => $this->formatDuration($this->getTime()),
                'Template calls' => $this->getTemplateCount(),
                'Block calls'    => $this->getBlockCount(),
                'Macro calls'    => $this->getMacroCount(),
            ],
            'Twig Metrics'
        );

        $templates = [];

        foreach ($this->getTemplates() as $template => $count) {
            $templates[$template] = $count;
        }

        $twigHtml .= $this->createTable(
            $templates,
            [
                'name'      => 'Rendered Templates',
                'headers'   => ['Template Name', 'Render Count'],
                'vardumper' => false,
            ]
        );

        $twigHtml .= '<div class="twig-graph"><h3>Rendering Call Graph</h3>';
        $twigHtml .= $this->getHtmlCallGraph();
        $twigHtml .= '</div>';
        $extensions = $this->twigEnvironment->getExtensions();
        $data[]     = ['name' => 'Twig <span class="counter">' . $this->getTemplateCount() . '</span>', 'content' => $twigHtml];
        $data[]     = ['name' => 'Twig Extensions <span class="counter">' . \count($extensions) . '</span>', 'content' => $this->createTable(
            \array_keys($extensions),
            ['headers' => ['Extension'], 'vardumper' => false]
        )];

        return $this->createTabs($data);
    }
{@inheritdoc}