title: How can I get doctrine query count from symfony2 profiler in production environment?
body: <p>I need to check how many sql query is executed in production environment of Symfony2 application.</p>
  
  <p>I tried following in my controller, but it displays me encoded string as result.</p>
  
  <pre><code>&lt;?php
  .....
  .....
  .....
  class DefaultController extends Controller
  {
  
      /**
       * @Route("/")
       * @Template()
       */
      public function testAction()
      {
          $profile = $this-&gt;container-&gt;get('profiler')-&gt;loadProfile($token);
          $data = $this-&gt;container-&gt;get('profiler')-&gt;export($profile);       
          print_r($data);
      }
  }
  .....
  .....
  </code></pre>