New in Symfony 2.4: A Stopwatch Tag for Twig
Contributed by
Wouter De Jong
and
Fabien Potencier
in #8719.
Ever wanted to time parts of a template? The new Symfony 2.4 stopwatch
tag
allows you to time any part of a template. This information is then stored in
the profiler and available in the "timeline" section of the web profiler:
1 2 3 | {% stopwatch "foo" %}
... some things that gets timed
{% endstopwatch %}
|
You can also use the same name more than once in your project to group the times on the same line in the web profiler timeline.
The tag being part of the Twig bridge, you can also leverage it in your Silex applications.
As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.
New in Symfony 2.4: A Stopwatch Tag for Twig symfony.com/blog/new-in-symfony-2-4-a-stopwatch-tag-for-twig
Tweet thisComments
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.
Luis Mas Serral said on Aug 29, 2013 at 11:00 #1