File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,21 @@ portable. Thanks to this helper, you can move the application root directory
310
310
anywhere under your web root directory without changing anything in your
311
311
template's code.
312
312
313
+ Profiling Templates
314
+ ~~~~~~~~~~~~~~~~~~~
315
+
316
+ Using the ``stopwatch `` helper, you are able to time parts of your template
317
+ and display it on the timeline of the WebProfilerBundle::
318
+
319
+ <?php $view['stopwatch']->start('foo') ?>
320
+ ... things that gets timed
321
+ <?php $view['stopwatch']->stop('foo') ?>
322
+
323
+ .. tip ::
324
+
325
+ If you use the same name more than once in your template, the times are
326
+ grouped on the same line in the timeline.
327
+
313
328
Output Escaping
314
329
---------------
315
330
You can’t perform that action at this time.
0 commit comments