【问题标题】:Xdebug profiler and xdebug_time_index() give different valuesXdebug profiler 和 xdebug_time_index() 给出不同的值
【发布时间】:2010-10-22 05:02:33
【问题描述】:

我使用 Xdebug 来分析我的 PHP 应用程序。

当我使用 WinCacheGrind 打开生成的配置文件时,{main} 的总累积时间为 3 毫秒(0.003 秒)。

但是,当我在代码末尾使用函数 xdebug_time_index() 时,它返回的时间为 0.03 秒。

有谁知道是什么导致了这种差异,哪一个更有代表性?

【问题讨论】:

    标签: php xdebug


    【解决方案1】:

    是否有机会添加该功能实际上会增加所需的时间?

    另外,我可以想象当 PHP 运行时(时间索引 0),探查器实际上会开始运行,而 XDebug 的内部计数器可以更早地启动。

    【讨论】:

      猜你喜欢
      • 2012-07-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-14
      • 1970-01-01
      • 2019-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多