【问题标题】:What's included in the "Initialization time" in the Symfony2 web profiler?Symfony2 web profiler 中的“初始化时间”包括什么?
【发布时间】:2012-06-22 18:53:48
【问题描述】:

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

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

【问题讨论】:

    标签: symfony


    【解决方案1】:

    代码的相关部分在这里:

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

    特别是This is the time spent until the beginning of the request handling.

    【讨论】:

      猜你喜欢
      • 2012-10-06
      • 1970-01-01
      • 2012-06-13
      • 2018-03-06
      • 2010-12-29
      • 2021-12-31
      • 2012-08-04
      相关资源
      最近更新 更多