“初始化时间"包括什么?在 Symfony2 网络分析器中? [英] What's included in the "Initialization time" in the Symfony2 web profiler?

查看:30
本文介绍了“初始化时间"包括什么?在 Symfony2 网络分析器中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Symfony2 网络分析器中查看时间线.总请求时间为 800ms,初始化时间为 750ms.详细细分显示了 50 毫秒内发生的所有有用信息.但是这 750 毫秒算什么?如果是缓存预热,为什么它会在后续刷新时保留?

I'm looking at the timeline in the Symfony2 web profiler. The total request time is 800ms and initialization time is 750ms. The detailed breakdown shows all the useful info happening in the 50ms. But what counts towards that 750ms? If it's cache warmup why does it remaining even on subsequent refreshes?

注意:这是开发环境.我不是性能调优,我只是好奇为什么它在时间配置文件中占了如此大的一部分.

Note: this is dev environment. I'm not performance tuning, I'm just curious why it's such a huge portion of the time profile.

推荐答案

相关部分代码在这里:

https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php#L110

具体来说这是直到开始处理请求所花费的时间.

这篇关于“初始化时间"包括什么?在 Symfony2 网络分析器中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆