symfony/symfony — Issue #3353: [Profiler] value under __section__ key is not set
Author: wodor
Created: 2012-02-14 14:52:26+00:00
State: open

When i generate profiling data in prod env (app.php) then i want to see it I open app_dev and select that request I get

An exception has been thrown during the rendering of a template ("Notice: Undefined index: __section__ in /home/wodor/wrk/www/symfony_lean/vendor/symfony/src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php line 75") in WebProfilerBundle:Collector:time.html.twig at line 20.

Is this a bug or bad usage ?
How to properly browse through the data gathered in prod env ?
Maybe another tool shold be created to read the stats of many request and find bottlenecks ?

There is one more issue with that. Configuration must be the same on both enviroments, at least the same data collectors must be enabled . i.e logging for swiftmailer

```php
if ($config['logging']) {
$container->getDefinition('swiftmailer.plugin.messagelogger')->addTag('swiftmailer.plugin');
$container->findDefinition('swiftmailer.data_collector')->addTag('data_collector', array('template' =>
'SwiftmailerBundle:Collector:swiftmailer', 'id' => 'swiftmailer'));
}
```