php - Profiler for twig template -


i'm starting optimize website still dev environment in symfony2.

i have 1 page quite wierd. page load in ~1000ms , twig template takes ~900ms based on symfony profiler.

i've looked @ twig template it's quite big (lots of loops, include templates etc...)

i know takes many times in template, i'm looking way profile templates. possible , how ?

with symfony 2.4, in twig template:

{% stopwatch "foo" %}    ... things gets timed {% endstopwatch %} 

Comments