Gar*_*son 4 html php templates symfony twig
我开始优化我的网站,该网站目前仍在 Symfony2 中使用开发环境。
我有一页很奇怪。页面加载时间约为 1000 毫秒,树枝模板基于 Symfony 分析器需要大约 900 毫秒。
我看过树枝模板,但它很大(很多循环,包括模板等......)
我想知道什么在我的模板中花费了这么多次,所以我正在寻找一种方法来分析这个模板。这是可能的吗?
Med*_*Med 5
使用 Symfony 2.4,在你的树枝模板中:
{% stopwatch "foo" %} ... some things that gets timed {% endstopwatch %}
归档时间:
10 年,9 月 前
查看次数:
372 次
最近记录: